Is there a runtime way (as opposed to compile time ifdef's), to determine if the irrlicht DLL in use can support directx ?
Here's what I'm aiming: I got a IGUIComboBox with the lists of all renderers, but I only want to list directx if on windows (easy to do) *and* if the irrlich DLL is compiled with directx support (not the case with the gcc DLL)
I was thinking of an irrlicht function as 'bool hasDevice(E_DRIVER_TYPE)' would be great, but it doesn't seem to exist.
Thanks,
Julien
E_DRIVER_TYPE and supported video drivers
-
julienlecomte
- Posts: 5
- Joined: Mon May 01, 2006 1:02 pm
-
julienlecomte
- Posts: 5
- Joined: Mon May 01, 2006 1:02 pm
I randomly stumbled on the answer through the doxy help file:
You can get a list via IrrlichtDevice::getVideoModeList(). If you are confused now, because you think you have to create an Irrlicht Device with a video mode before being able to get the video mode list, let me tell you that there is no need to start up an Irrlicht Device with EDT_DIRECT3D8, EDT_OPENGL or DT_SOFTWARE: For this (and for lots of other reasons) the null device, DT_NULL exists.