how to change the parameter of a irrlichtdevice

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
lancer_xjb
Posts: 11
Joined: Wed Mar 31, 2010 9:30 am

how to change the parameter of a irrlichtdevice

Post by lancer_xjb »

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.
yestoday is a history,tomorrow is a mystery,but today is a gift.That's why we call it the present.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

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
lancer_xjb
Posts: 11
Joined: Wed Mar 31, 2010 9:30 am

Post by lancer_xjb »

In other words , giving value of old device to a new one.Is that right?
thanks for upper answer
yestoday is a history,tomorrow is a mystery,but today is a gift.That's why we call it the present.
Post Reply