Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
ISceneUserDataSerializer.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_SCENE_USER_DATA_SERIALIZER_HPP_INCLUDED
6#define NIRT_I_SCENE_USER_DATA_SERIALIZER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9
10namespace nirt
11{
12namespace io
13{
14 class IAttributes;
15} // end namespace io
16namespace scene
17{
18 class ISceneNode;
19
21
25{
26public:
27
28 virtual ~ISceneUserDataSerializer() {}
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 nirt
49
50#endif
Provides a generic interface for attributes and their values and the possibility to serialize them.
Definition IAttributes.hpp:42
Scene node interface.
Definition ISceneNode.hpp:43
Interface to read and write user data to and from .irr files.
Definition ISceneUserDataSerializer.hpp:25
virtual void OnReadUserData(ISceneNode *forSceneNode, io::IAttributes *userData)=0
Called when the scene manager read a scene node while loading a file.
virtual void OnCreateNode(ISceneNode *node)=0
Called when the scene manager create 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.
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print