xml reader before you start the irrlicht device

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
kompromis
Posts: 98
Joined: Mon Sep 11, 2006 2:36 pm
Location: sweden/stockholm

xml reader before you start the irrlicht device

Post by kompromis »

is it possible to use the xml reader before you start the irrlicht device
since i need to load the driver type from the xml file
liger13
Posts: 119
Joined: Tue Jul 18, 2006 4:17 am

Post by liger13 »

i had this same problem and i came up with two solutions...
1. grab the source for the stand alone irrXml
2. create a dummy software render device for use of xml.

I for one picked number two because i didnt want to have to put the sourcecode for somthing already in there.
kompromis
Posts: 98
Joined: Mon Sep 11, 2006 2:36 pm
Location: sweden/stockholm

Post by kompromis »

and how do i do one of those things
Frodenius
Posts: 64
Joined: Sun Aug 29, 2004 11:24 am
Location: Germany/Frankfurt
Contact:

Post by Frodenius »

well the first schouldnt be a problem http://www.ambiera.com/irrxml/
and the second is fairly easy:

Code: Select all

IrrlichtDevice* device = createDevice(EDT_NULL);
//and then work with this one until you finished want you wanted to do, e.g. config loading..
device->drop();
device = createDevice(EDT_WHATEVER);
worst programming style ever seen...
Post Reply