Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
ISceneUserDataSerializer.h
Go to the documentation of this file.
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __I_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
6#define __I_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
7
8#include "IReferenceCounted.h"
9
10namespace irr
11{
12namespace io
13{
14 class IAttributes;
15} // end namespace io
16namespace scene
17{
18 class ISceneNode;
19
21
25{
26public:
27
29
31 virtual void OnCreateNode(ISceneNode* node) = 0;
32
34
36 virtual void OnReadUserData(ISceneNode* forSceneNode, io::IAttributes* userData) = 0;
37
39
44 virtual io::IAttributes* createUserData(ISceneNode* forSceneNode) = 0;
45};
46
47} // end namespace scene
48} // end namespace irr
49
50#endif
51
Provides a generic interface for attributes and their values and the possiblity to serialize them.
Definition IAttributes.h:42
Scene node interface.
Definition ISceneNode.h:41
Interface to read and write user data to and from .irr files.
virtual void OnReadUserData(ISceneNode *forSceneNode, io::IAttributes *userData)=0
Called when the scene manager read a scene node while loading a file.
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.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13