History: RapidXML Dotscene Loader
Preview of version: 17
REDIRECT plugin: The redirection to 'https://github.com/OGRECave/DotSceneFormat' is disabled in preview mode.
|
| This is a dotscene loader based on {LEX()}RapidXML{LEX}. |
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.
The Code
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
DotSceneLoader loader; loader.parseDotScene("SampleScene2.xml","General", mSceneMgr);
The loader assumes that the scene is in your Ogre resource locations.
That's it.
See Also
|
|
|