Get screen resolution

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
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Get screen resolution

Post 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
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Get screen resolution

Post 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?
"Whoops..."
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Yes, I mean the whole screen
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Check the VideoModeList.
ent1ty
Competition winner
Posts: 1106
Joined: Sun Nov 08, 2009 11:09 am

Post by ent1ty »

Nice, thanks
gingerheadman
Posts: 18
Joined: Sat Oct 03, 2009 7:14 am
Location: Brisbane, Australia
Contact:

Post by gingerheadman »

You might also want to check out this page on the Irrlicht wiki:
http://www.irrlicht3d.org/wiki/index.ph ... Resolution
My website - Miscreant Software
Post Reply