Hi. I'm new to using Irrlicht, but an experienced game/engine programmer, and so far it's an excellent, fast engine. However.
I create a device using the burning software render the first time to allow the user to select device, effects, screen etc. options.
If I call drop on the first device, and then create the second you can still see the first device window.
Ok. Fair enough. I call closedevice on the first device, (which states that run will fail for the current device) and now the first device window is closed, but the second device created, bails out when run is called.
It seems like a bug, since i closed a completely different device?
As I'm a new Irrlicht user I might be missing something, so any help would be greatly appreciated
Thanks in advance
Creating device, shutting it down and creating a new problem
I'm success in my project like this :
///////
IrrlichtDevice* device =createDevice( video::EDT_BURNINGSVIDEO, dimension2d<s32>(640,480), 32,false, false, false, &Event);
int mdevice;
dimension2di win;
bool fullscreen;
...
while (device->run())
{
// support user select devicetype, win, fullscreen...
...
}
device->drop();
//create new device by user select
device =createDevice( mdevice, win, 32,fullscreen,...);
...
while (device->run())
{
// support user select dirver, fullscreen...
...
}
device->drop();
///////
IrrlichtDevice* device =createDevice( video::EDT_BURNINGSVIDEO, dimension2d<s32>(640,480), 32,false, false, false, &Event);
int mdevice;
dimension2di win;
bool fullscreen;
...
while (device->run())
{
// support user select devicetype, win, fullscreen...
...
}
device->drop();
//create new device by user select
device =createDevice( mdevice, win, 32,fullscreen,...);
...
while (device->run())
{
// support user select dirver, fullscreen...
...
}
device->drop();
There's something is fantastic, there's nothing is absolute.