Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials |
#include <ISceneUserDataSerializer.h>
Public Member Functions | |
virtual io::IAttributes * | createUserData (ISceneNode *forSceneNode)=0 |
Called when the scene manager is writing a scene node to an xml file for example. | |
virtual void | OnCreateNode (ISceneNode *node)=0 |
Called when the scene manager create a scene node while loading a file. | |
virtual void | OnReadUserData (ISceneNode *forSceneNode, io::IAttributes *userData)=0 |
Called when the scene manager read a scene node while loading a file. | |
virtual | ~ISceneUserDataSerializer () |
This interface is to be implemented by the user, to make it possible to read and write user data when reading or writing .irr files via ISceneManager. To be used with ISceneManager::loadScene() and ISceneManager::saveScene()
Definition at line 24 of file ISceneUserDataSerializer.h.
virtual irr::scene::ISceneUserDataSerializer::~ISceneUserDataSerializer | ( | ) | [inline, virtual] |
Definition at line 28 of file ISceneUserDataSerializer.h.
virtual io::IAttributes* irr::scene::ISceneUserDataSerializer::createUserData | ( | ISceneNode * | forSceneNode | ) | [pure virtual] |
Called when the scene manager is writing a scene node to an xml file for example.
Implement this method and return a list of attributes containing the user data you want to be saved together with the scene node. Return 0 if no user data should be added. Please note that the scene manager will call drop() to the returned pointer after it no longer needs it, so if you didn't create a new object for the return value and returning a longer existing IAttributes object, simply call grab() before returning it.
virtual void irr::scene::ISceneUserDataSerializer::OnCreateNode | ( | ISceneNode * | node | ) | [pure virtual] |
virtual void irr::scene::ISceneUserDataSerializer::OnReadUserData | ( | ISceneNode * | forSceneNode, | |
io::IAttributes * | userData | |||
) | [pure virtual] |
The Irrlicht
Engine Documentation © 2003-2009 by Nikolaus Gebhardt. Generated
on Sun Jan 10 09:24:16 2010 by Doxygen
(1.5.6) |