creating an xml parser without initializing device

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
rogerdv
Posts: 93
Joined: Wed Aug 27, 2003 4:20 pm

creating an xml parser without initializing device

Post by rogerdv »

Is possible to create an xml parser before the initialization of an irrlicht device? I want to load config and then init device according to read values, instead of init, read and reinit screen.
ru guo ni yao ai, ni jiang bu hui shi qu
area51
Posts: 338
Joined: Thu Mar 18, 2004 10:20 pm
Location: UK
Contact:

Post by area51 »

You will need to create the device first in order to use the IXMLReader.

To get around your problem, you can initialise the device using the software renderer, then read in your xml config file and close the device. You will be able to then use the new settings to create another device.

This is done in a similar way in the Tech demo, have a look at the code and see if it helps
________
MOTORCYCLE TIRES
Last edited by area51 on Tue Feb 22, 2011 1:00 pm, edited 1 time in total.
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

Use EDT_NULL device. It is exactly what you need.
Guest

Post by Guest »

Hmm, would be nice if Niko adds this to feature requests (a device independent xml reader)
Post Reply