Page 1 of 1
Get screen resolution
Posted: Fri Nov 20, 2009 5:30 pm
by ent1ty
So, how do you get the screen resolution? I know this can be done somehow with windows API but that would make my project platform-dependent
Re: Get screen resolution
Posted: Fri Nov 20, 2009 5:35 pm
by randomMesh
Code: Select all
const irr::core::dimension2du& screenSize = driver->getScreenSize();
Or do you mean the whole screen an not only the device dimensions?
Posted: Fri Nov 20, 2009 5:56 pm
by ent1ty
Yes, I mean the whole screen
Posted: Fri Nov 20, 2009 8:35 pm
by hybrid
Check the VideoModeList.
Posted: Sat Nov 21, 2009 4:17 pm
by ent1ty
Nice, thanks
Posted: Sun Nov 22, 2009 1:06 pm
by gingerheadman
You might also want to check out this page on the Irrlicht wiki:
http://www.irrlicht3d.org/wiki/index.ph ... Resolution