Short API questions - isFullscreen() getColorDepth()?

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
keless
Posts: 805
Joined: Mon Dec 15, 2003 10:37 pm
Location: Los Angeles, California, USA

Short API questions - isFullscreen() getColorDepth()?

Post by keless »

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..
a screen cap is worth 0x100000 DWORDS
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

hmm yes, I'll move this to open discussion and ask-

Anyone have objections to adding these two, can think of better names for them, or think returning ECOLOR_FORMAT is wrong, etc?

bool IrrlichtDevice::isFullScreen()
ECOLOR_FORMAT IVideoDriver::getColorFormat()
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
CuteAlien
Admin
Posts: 9736
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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.
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
Post Reply