Irrlicht Device SDL

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
jonasled
Posts: 34
Joined: Sat Aug 26, 2006 5:08 pm
Location: Sweden
Contact:

Irrlicht Device SDL

Post by jonasled »

There is obviously something I'm missing about the new SDL device. It is obviously not a video driver option, but how do I create such a device? Do I have to compile Irrlicht with SDL? If so how would I do that? Is there a compile switch that builds it with SDL support?
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

From the changes.txt:

"Added an SDL device for cross-platform window support. Especially useful for embedded systems and others without hardware acceleration.
This device is mutually exclusive with the other devices and requires linking against the SDL library."

I never tried it, though.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You have to enable the compile switch in IrrCompileConfig and link against the sdl library (dynamically if you want to avoid LGPL licensing of your code). You can use OpenGL and the software drivers. The driver simply creates the necessary windows and event handling.
Post Reply