FullScreen 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
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

FullScreen Mode

Post by BenFlowers »

Hi guys,
Ok ive been doing irrlicht for not long now so bare with me please :? OK i know this is probably a very simple thing but i cant find out how anywhere. How can i make my program run in full screen mode? I.e the complete width of the screen i mean not in "the full screen mode" boolean that is in the createdevice thingy. I mean is there a function to return the width and height of the screen. i've searched around and i've found a few "getDesktopResolution()" and "getScreenSize" but i can't get this to work with the creatdevice bit of code or am i doomed to typing in a width and height of the window forver....
Thanks in advance -BEN
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You're right with the getDesktopResolution() etc. What you have to do is create a device initially with the Null driver, it's one of the possible drivers you can choose, like OpenGL or DX8/9, then you store the desktop resolution, drop the device and create a new one with a non-null driver and pass it the desktop resolution you found :)
Image Image Image
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

i never thought about it like that, i just thought it was a technical hitch in irrlicht. Thanks a lot -BEN
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

How can i store the value though? What is the irrlicht Type i cant find any and it cant be stored in an int or an array because i keep geting errors ...
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

You could always check the API ;)

It's a dimension2d<int> i believe
Image Image Image
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

thanks, how do i check the API lol... in such a n00b sorry.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Go to the main Irrlicht website and you can find links to the tutorials and API on the left hand side, both very useful!
Image Image Image
BenFlowers
Posts: 18
Joined: Fri Nov 03, 2006 10:42 pm

Post by BenFlowers »

Thanks a lot dude got it all sorted etc... very helpfull
-BEN
Post Reply