Page 1 of 1

restarting

Posted: Mon Oct 10, 2005 2:48 pm
by Shawn84
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.

Posted: Mon Oct 10, 2005 6:02 pm
by Grey Lantern
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!

Posted: Tue Oct 11, 2005 11:04 am
by Shawn84
ya i wish :D

Posted: Wed Oct 12, 2005 3:11 pm
by Guest
^^bump

Posted: Wed Jan 25, 2006 5:04 pm
by genesisrage
one command i would love...
device->setSize(dimension2d<s32>(x,y));

because there is already
device->setResizable(true);

with a quick resize=true, setsize, resize=false might be able to work?
plus a setFullscreen=bool would be a great feature

Restarting device

Posted: Wed Jan 25, 2006 9:57 pm
by Xandar
I saw code that restarts device. I am going to look for it and send
you link if i can find it.