get windowed/fullscreen mode at runtime ?

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
xterminhate
Posts: 206
Joined: Thu Sep 01, 2005 9:26 pm
Location: France

get windowed/fullscreen mode at runtime ?

Post by xterminhate »

How is it possible to get the current video mode of the device ? I need to know if the application runs in either full screen or windowed mode.

Thanks.
Return to Irrlicht after years... I'm lovin it.
It's hard to be a Man !
Si vis pacem para belum
Mecharius
Posts: 17
Joined: Wed Jun 07, 2006 7:05 am

Post by Mecharius »

I believe this question was already answered in this post
http://irrlicht.sourceforge.net/phpBB2/ ... fullscreen

EDIT: Oops! This was from May, not June :)
hxhieu
Posts: 4
Joined: Thu Jun 29, 2006 1:26 am

Post by hxhieu »

How about changing fullscreen/windowed mode at runtime via a button for example :) ?

Thanks in advanced
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

i don't believe irrlicht allows for screen size changing during runtime. if you want, you might be able to de-initialize the device, and then reinitialize it after, restoring memory links manually. this would be a difficult and tedious task that might require some advanced programming procedures
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
hxhieu
Posts: 4
Joined: Thu Jun 29, 2006 1:26 am

Post by hxhieu »

rooly wrote:i don't believe irrlicht allows for screen size changing during runtime. if you want, you might be able to de-initialize the device, and then reinitialize it after, restoring memory links manually. this would be a difficult and tedious task that might require some advanced programming procedures
Ah thanks alot for the reply so I dont have to search the documentation for that anymore :P
rooly
Posts: 224
Joined: Tue Oct 25, 2005 4:32 pm
Location: Louisiana, USA, backwater country
Contact:

Post by rooly »

you might want to try the 'setWindowIsResizable(bool)' function from the api. you can find it simply by searching for 'createDevice'
When banks compete, you win.
When ISPs compete, you win.
When electronics retailers compete, you win.
When governments compete...you get drafted.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

But this would be much more important for fullscreen. I guess it should be possible.
Post Reply