I need to find out the color depth of the current videoDriver, and whether or not it is fullscreen, after having been created. I cannot find this information in the API, and didnt see any promising topics in forum search.
Anyone know off the top of their heads?
As a workaround, I could store the parameters I use to create the device and just pull the data from that. However, I'd think you could ask the device whether or not it was full screen and not have to carry redundant data like that..
Short API questions - isFullscreen() getColorDepth()?
Short API questions - isFullscreen() getColorDepth()?
a screen cap is worth 0x100000 DWORDS
Adding those would certainly be nice. But it's not just about using the bitdepth which was set, but you have to find the bitdepth which is actually used.
It's some time since I checked that, but I think it was like that:
CIrrDeviceLinux had already a depth parameter. On Windows/OpenGL you could call DescribePixelFormat after the ChoosePixelFormat call in COpenGLDriver::initDriver(). But I don't know about DirectX which I did not check.
It's some time since I checked that, but I think it was like that:
CIrrDeviceLinux had already a depth parameter. On Windows/OpenGL you could call DescribePixelFormat after the ChoosePixelFormat call in COpenGLDriver::initDriver(). But I don't know about DirectX which I did not check.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm