restarting
restarting
what is the code for restarting a game/device? I have options to change screen resalutions but they don't take effect untill the next time you load the game. Could someone tell me how to restart or have it automatically resize when you click the resalution buttons.
-
- Posts: 34
- Joined: Sat Jul 30, 2005 9:45 am
- Contact:
I've been through this before - questions asked but no definate reply - was told to look at demo example which doesn't do what we want (actually starts a splash irrlicht then another irrlicht - no good if you want to keep gamestates).
I too really would like an answer about this, because I notice in the irrlicht source code there are things like "window resized" and "reset". In Direct3D you usually check for loss of device, free up system resources and reload on app focus. it is abstracted so far in irrlicht that you can't get that control on it (without customising the dll a lot).
A simple device->restart(newparameters) would be great!
I too really would like an answer about this, because I notice in the irrlicht source code there are things like "window resized" and "reset". In Direct3D you usually check for loss of device, free up system resources and reload on app focus. it is abstracted so far in irrlicht that you can't get that control on it (without customising the dll a lot).
A simple device->restart(newparameters) would be great!
-
- Posts: 93
- Joined: Tue Feb 08, 2005 12:19 pm
Restarting device
I saw code that restarts device. I am going to look for it and send
you link if i can find it.
you link if i can find it.