I want to change the drivertype of a device according to the user's option.
class GameDate{
....
irr::irrlichtDevice* deviceEx;
....
}
....
GameData game;
....
game.deviceEx = irr::createDevice(DeviceParameter);
but after created , I don't know how to change the drivertype.
how to reset the drivertype of deviceEx after the user select another option.
how to change the parameter of a irrlichtdevice
-
- Posts: 11
- Joined: Wed Mar 31, 2010 9:30 am
how to change the parameter of a irrlichtdevice
yestoday is a history,tomorrow is a mystery,but today is a gift.That's why we call it the present.
You have to create a new device. You can't change the type after the device was created.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 11
- Joined: Wed Mar 31, 2010 9:30 am