History: RapidXML Dotscene Loader
Preview of version: 12
|
| 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.
It also implements a simple Ogre terrain loader.
RapidXML is very similar to TinyXML in use, but it's only a single header - and thus extremely lightweight.
If you have questions, etc, use this forum topic.
The code is currently not as generic as it could be, as the loader class is fished directly out of the Ogitor repository.
It will be cleaned up and fixed later - most probably as a separate project.
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:
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.
|
|
|