restarting

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
Shawn84
Posts: 2
Joined: Mon Oct 10, 2005 2:33 pm

restarting

Post 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.
Grey Lantern
Posts: 34
Joined: Sat Jul 30, 2005 9:45 am
Contact:

Post 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!
Shawn84
Posts: 2
Joined: Mon Oct 10, 2005 2:33 pm

Post by Shawn84 »

ya i wish :D
Guest

Post by Guest »

^^bump
genesisrage
Posts: 93
Joined: Tue Feb 08, 2005 12:19 pm

Post 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
Xandar
Posts: 16
Joined: Mon Nov 28, 2005 9:17 pm
Contact:

Restarting device

Post by Xandar »

I saw code that restarts device. I am going to look for it and send
you link if i can find it.
Post Reply