Page 1 of 1

Determine legal resolution for full screen mode

Posted: Sat May 23, 2015 12:52 pm
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)...

Re: Determine legal resolution for full screen mode

Posted: Mon May 25, 2015 11:13 am
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

Re: Determine legal resolution for full screen mode

Posted: Tue May 26, 2015 8:41 am
by dearingj
To determine whether certain features are supported, you can use IVideoDriver::queryFeature().

Re: Determine legal resolution for full screen mode

Posted: Wed May 27, 2015 5:22 pm
by fargoth
Thank you very much!