You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
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?
Yes, i've read that, but i were not sure if "the state of the game" were meshes and so, or only your own logic and variables. I suppose you have to reload everything, just as you had restarted the application. Thanks.
It depends of course "when" you decide to switch fullscreen/windowed mode. If its in the middle of the game you still want your character to be on the same place etc imo.
I still need to implement it myself so it would be nice if you post your solution on the forum for others to read maybe
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.
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.!
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.!
Don't f*ck! (spanish expression, don't know if it exists in english )
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...