how to create a user-defined engine

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 create a user-defined engine

Post by lancer_xjb »

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

Post by CuteAlien »

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.
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
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Post by Memorial76 »

I created a device = 0,and use it to create a gui interface such as
Device->getGUIEnvironment()->addButton(parameters).
What you do is equivalent to "0->getGUIEnvironment()" it won't work.

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

Post by lancer_xjb »

thanks for help
yestoday is a history,tomorrow is a mystery,but today is a gift.That's why we call it the present.
Post Reply