toggle fullscreen / window mode
toggle fullscreen / window mode
please help!!!
Is it possible to switch from Windowed mode to fullscreen AT RUN TIME??
and how?
it's a very usefull feature (ex: alt-Enter toggle fullscreen/window)
but il doesn't seem to be very easy to implement with that engine...
Is it possible to switch from Windowed mode to fullscreen AT RUN TIME??
and how?
it's a very usefull feature (ex: alt-Enter toggle fullscreen/window)
but il doesn't seem to be very easy to implement with that engine...
Come back to life, my creature!!!
A very old thread, i know, but i've exactly the same question:
is there a way to toggle windowed/fullscreen on runtime?
Answer on 2004: just close the device and immediately create a new, windowed device.
Answer on 2009, with IrrLicht 1.5? There's no automatic method to toggle without losing the scene?
A very old thread, i know, but i've exactly the same question:
is there a way to toggle windowed/fullscreen on runtime?
Answer on 2004: just close the device and immediately create a new, windowed device.
Answer on 2009, with IrrLicht 1.5? There's no automatic method to toggle without losing the scene?
For sure you already noticed that most of the games which offer you fullscreen/windowed mode switch will tell you that you need to restart application for changes to take place. That is not bad solution ...or compromise better say.
You can also offer setting screen on application start where user can change settings like that and do some other things as well (open manual/help, visit webpage, view version and so on). This will have device of its own which will close after play/continue/start button is clicked. Then application device will be created based on settings selected.
You can also offer setting screen on application start where user can change settings like that and do some other things as well (open manual/help, visit webpage, view version and so on). This will have device of its own which will close after play/continue/start button is clicked. Then application device will be created based on settings selected.
-
- Posts: 66
- Joined: Wed Oct 04, 2006 2:07 pm
Don't f*ck! (spanish expression, don't know if it exists in english )The new example 21. Quake3Explorer does exactly that. It opens and closes a Device and saves/reload the game state. It even provides a GUI for changing the ScreenResolution.!
That's cool, i'll take a look on it
The only thing left, then, is to detect ALT+TAB or similar. Or is there a solution for that? Maybe "device->isWindowActive" or "device->isWindowFocused" have something to do? I really don't understand well the diference...
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
I was able to do it one way on 1.4. It should work again in 1.5.
I opened my main device on the "null" device. You will see nothing opening (no window or display).
In your code then you open another device (GL or DX) then you draw your scene on that device.
You have to take care after to close ALL devices, because the application will still be running even if you closed the display.
I opened my main device on the "null" device. You will see nothing opening (no window or display).
In your code then you open another device (GL or DX) then you draw your scene on that device.
You have to take care after to close ALL devices, because the application will still be running even if you closed the display.