Loading...
Searching...
No Matches
ISceneUserDataSerializer.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
#define __I_SCENE_USER_DATA_SERIALIZER_H_INCLUDED__
#include "IReferenceCounted.h"
namespace irr
{
namespace io
{
class IAttributes;
} // end namespace io
namespace scene
{
class ISceneNode;
class ISceneUserDataSerializer
{
public:
virtual ~ISceneUserDataSerializer() {}
virtual void OnCreateNode(ISceneNode* node) = 0;
virtual void OnReadUserData(ISceneNode* forSceneNode, io::IAttributes* userData) = 0;
virtual io::IAttributes* createUserData(ISceneNode* forSceneNode) = 0;
};
} // end namespace scene
} // end namespace irr
#endif
IReferenceCounted.h
irr::io::IAttributes
Provides a generic interface for attributes and their values and the possiblity to serialize them.
Definition IAttributes.h:42
irr::scene::ISceneNode
Scene node interface.
Definition ISceneNode.h:41
irr::scene::ISceneUserDataSerializer
Interface to read and write user data to and from .irr files.
Definition ISceneUserDataSerializer.h:25
irr::scene::ISceneUserDataSerializer::~ISceneUserDataSerializer
virtual ~ISceneUserDataSerializer()
Definition ISceneUserDataSerializer.h:28
irr::scene::ISceneUserDataSerializer::OnReadUserData
virtual void OnReadUserData(ISceneNode *forSceneNode, io::IAttributes *userData)=0
Called when the scene manager read a scene node while loading a file.
irr::scene::ISceneUserDataSerializer::createUserData
virtual io::IAttributes * createUserData(ISceneNode *forSceneNode)=0
Called when the scene manager is writing a scene node to an xml file for example.
irr::scene::ISceneUserDataSerializer::OnCreateNode
virtual void OnCreateNode(ISceneNode *node)=0
Called when the scene manager create a scene node while loading a file.
irr::io
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0