Loading...
Searching...
No Matches
ISceneNodeFactory.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_NODE_FACTORY_H_INCLUDED__
#define __I_SCENE_NODE_FACTORY_H_INCLUDED__
#include "IReferenceCounted.h"
#include "ESceneNodeTypes.h"
namespace irr
{
namespace scene
{
class ISceneNode;
class ISceneNodeFactory : public virtual IReferenceCounted
{
public:
virtual ISceneNode* addSceneNode(ESCENE_NODE_TYPE type, ISceneNode* parent=0) = 0;
virtual ISceneNode* addSceneNode(const c8* typeName, ISceneNode* parent=0) = 0;
virtual u32 getCreatableSceneNodeTypeCount() const = 0;
virtual ESCENE_NODE_TYPE getCreateableSceneNodeType(u32 idx) const = 0;
virtual const c8* getCreateableSceneNodeTypeName(u32 idx) const = 0;
virtual const c8* getCreateableSceneNodeTypeName(ESCENE_NODE_TYPE type) const = 0;
};
} // end namespace scene
} // end namespace irr
#endif
ESceneNodeTypes.h
IReferenceCounted.h
irr::IReferenceCounted::IReferenceCounted
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:46
irr::scene::ISceneNodeFactory
Interface for dynamic creation of scene nodes.
Definition ISceneNodeFactory.h:28
irr::scene::ISceneNodeFactory::getCreatableSceneNodeTypeCount
virtual u32 getCreatableSceneNodeTypeCount() const =0
returns amount of scene node types this factory is able to create
irr::scene::ISceneNodeFactory::getCreateableSceneNodeTypeName
virtual const c8 * getCreateableSceneNodeTypeName(u32 idx) const =0
returns type name of a createable scene node type by index
irr::scene::ISceneNodeFactory::addSceneNode
virtual ISceneNode * addSceneNode(const c8 *typeName, ISceneNode *parent=0)=0
adds a scene node to the scene graph based on its type name
irr::scene::ISceneNodeFactory::getCreateableSceneNodeType
virtual ESCENE_NODE_TYPE getCreateableSceneNodeType(u32 idx) const =0
returns type of a createable scene node type
irr::scene::ISceneNodeFactory::getCreateableSceneNodeTypeName
virtual const c8 * getCreateableSceneNodeTypeName(ESCENE_NODE_TYPE type) const =0
returns type name of a createable scene node type
irr::scene::ISceneNodeFactory::addSceneNode
virtual ISceneNode * addSceneNode(ESCENE_NODE_TYPE type, ISceneNode *parent=0)=0
adds a scene node to the scene graph based on its type id
irr::scene::ISceneNode
Scene node interface.
Definition ISceneNode.h:41
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::ESCENE_NODE_TYPE
ESCENE_NODE_TYPE
An enumeration for all types of built-in scene nodes.
Definition ESceneNodeTypes.h:20
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::c8
char c8
8 bit character variable.
Definition irrTypes.h:31
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0