History: RapidXML Dotscene Loader
Preview of version: 7
|
| This is a dotscene loader based on RapidXML. |
Table of contents
Introduction
This dotscene loader is based on New DotScene Loader but uses RapidXML instead of TinyXML.
RapidXML is very similar to TinyXML in use, but it's only a single header - and thus extremely lightweight.
Prerequisites
The Code
An up-to-date version lives in the Ogitor repository:
http://hg.ogitor.org/v0-4
Sample Use
Add the two files above to your project, along with RapidXML.hpp, and then it's just a matter of calling parseDotScene:
Copy to clipboard
Ogre::DotSceneLoader loader; loader.parseDotScene("SampleScene2.xml","General", mSceneMgr);
The loader assumes that the scene is in your Ogre resource locations.
That's it.
The loader will be refactored soon, so stay tuned.
One of the things which will be refactored is the fact that it currently constructs and manages a terrain instance.
See Also
|
|
|