Determine legal resolution for full screen mode

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
fargoth
Posts: 22
Joined: Fri May 01, 2015 7:43 pm

Determine legal resolution for full screen mode

Post by fargoth »

Is there a way to determine in run-time the possible resolutions a computer supports for full-screen mode?
I'm making a video settings menu and I want to populate it only with the right options...
I would also like to know how I determine if certain features are supported, e.g. parallax mapping (my laptop doesn't like it, but I still want to enable it for people with proper video cards)...
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Determine legal resolution for full screen mode

Post by CuteAlien »

IrrlichtDevice::getVideoModeList returns the supported resolutions. You can create a dummy device to get them.
Some example where I used it in the InitVideoModes function: https://bitbucket.org/mzeilfelder/trunk ... at=default
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
dearingj
Posts: 7
Joined: Sun Dec 30, 2007 5:43 am
Contact:

Re: Determine legal resolution for full screen mode

Post by dearingj »

To determine whether certain features are supported, you can use IVideoDriver::queryFeature().
fargoth
Posts: 22
Joined: Fri May 01, 2015 7:43 pm

Re: Determine legal resolution for full screen mode

Post by fargoth »

Thank you very much!
Post Reply