first,the user can see a gui interface.Then the user selects the parameters of irrlicht engine. Finally, the specified engine is created and rendered.
I created a device = 0,and use it to create a gui interface such as
Device->getGUIEnvironment()->addButton(parameters).
But there is always an address problem with the device;.
How to solve it?Or how to created an upper device?
how to create a user-defined engine
-
lancer_xjb
- Posts: 11
- Joined: Wed Mar 31, 2010 9:30 am
how to create a user-defined engine
yestoday is a history,tomorrow is a mystery,but today is a gift.That's why we call it the present.
Sorry, your question is colorful but lacking information.
I suppose you want to create 2 devices in a row. First one for settings, then one for the game. You have to close the settings device with device->closeDevice (). And then create a new device with createDevice or createDeviceEx. If you have any errors while doing that, then please show us the code and tell us in which environment (OS, compiler) you have those problems.
I suppose you want to create 2 devices in a row. First one for settings, then one for the game. You have to close the settings device with device->closeDevice (). And then create a new device with createDevice or createDeviceEx. If you have any errors while doing that, then please show us the code and tell us in which environment (OS, compiler) you have those problems.
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
-
Memorial76
- Posts: 103
- Joined: Mon Aug 10, 2009 8:22 pm
- Location: France
What you do is equivalent to "0->getGUIEnvironment()" it won't work.I created a device = 0,and use it to create a gui interface such as
Device->getGUIEnvironment()->addButton(parameters).
Create one device first then grap the parameters you need. Del the first device (->closeDevice) then create a second device with those parameters.
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/
My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
http://irrgerap.sourceforge.net/
My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
-
lancer_xjb
- Posts: 11
- Joined: Wed Mar 31, 2010 9:30 am