Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Microsoft Windows integration?
#5
Hi,
Yes, you can use Tilengine without its built-in window. In this case is up to you, the integrator, to create the render target in your windowing environment. Tilengine expects a 32-bit RGBA surface. This chapter in the documentation gives the details:
http://www.tilengine.org/doc/md_rendering.html

In Windows, you must use DirectDraw, Direct3D, OpenGL or whatever graphics API that allows you to create and use RGBA surfaces. The built-in window uses the cross-platform library SDL2, that in turn selects the best graphics API available on host operating system. Tilengine itself doesn't require any kind of graphic acceleration, you can even draw to a memory buffer.

This example showcases how to draw to a Java applet:
https://github.com/megamarc/JTilengine/b...Panel.java

And here is a tutorial on how to integrate inside a Unity project:
http://madwonder.com/tilengine-embedding-unity/

Even if you check the source code of Window.c, you can see how the built-in window uses SDL2:
https://github.com/megamarc/Tilengine/bl...dow.c#L999
Reply


Messages In This Thread
RE: Microsoft Windows integration? - by megamarc - 12-10-2020, 05:34 PM
RE: Microsoft Windows integration? - by System64 - 12-11-2020, 12:49 PM
RE: Microsoft Windows integration? - by megamarc - 12-11-2020, 04:39 PM
RE: Microsoft Windows integration? - by System64 - 12-11-2020, 10:58 PM
RE: Microsoft Windows integration? - by megamarc - 12-11-2020, 11:44 PM
RE: Microsoft Windows integration? - by System64 - 12-11-2020, 11:59 PM
RE: Microsoft Windows integration? - by megamarc - 12-12-2020, 12:24 AM
RE: Microsoft Windows integration? - by System64 - 12-12-2020, 12:53 AM
RE: Microsoft Windows integration? - by megamarc - 12-12-2020, 01:09 AM
RE: Microsoft Windows integration? - by System64 - 12-12-2020, 01:38 AM
RE: Microsoft Windows integration? - by megamarc - 12-12-2020, 01:48 AM
RE: Microsoft Windows integration? - by System64 - 12-12-2020, 01:57 AM
RE: Microsoft Windows integration? - by megamarc - 12-12-2020, 02:41 AM
RE: Microsoft Windows integration? - by megamarc - 12-12-2020, 04:49 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)