Interface for dynamic creation of scene node animators. More...
#include <ISceneNodeAnimatorFactory.h>
Public Member Functions | |
virtual ISceneNodeAnimator * | createSceneNodeAnimator (const c8 *typeName, ISceneNode *target)=0 |
creates a scene node animator based on its type name | |
virtual ISceneNodeAnimator * | createSceneNodeAnimator (ESCENE_NODE_ANIMATOR_TYPE type, ISceneNode *target)=0 |
creates a scene node animator based on its type id | |
virtual u32 | getCreatableSceneNodeAnimatorTypeCount () const =0 |
returns amount of scene node animator types this factory is able to create | |
virtual ESCENE_NODE_ANIMATOR_TYPE | getCreateableSceneNodeAnimatorType (u32 idx) const =0 |
returns type of a createable scene node animator type | |
virtual const c8 * | getCreateableSceneNodeAnimatorTypeName (ESCENE_NODE_ANIMATOR_TYPE type) const =0 |
returns type name of a createable scene node animator type | |
virtual const c8 * | getCreateableSceneNodeAnimatorTypeName (u32 idx) const =0 |
returns type name of a createable scene node animator type | |
![]() | |
IReferenceCounted () | |
Constructor. | |
virtual | ~IReferenceCounted () |
Destructor. | |
bool | drop () const |
Drops the object. Decrements the reference counter by one. | |
const c8 * | getDebugName () const |
Returns the debug name of the object. | |
s32 | getReferenceCount () const |
Get the reference count. | |
void | grab () const |
Grabs the object. Increments the reference counter by one. | |
Additional Inherited Members | |
![]() | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. | |
Interface for dynamic creation of scene node animators.
To be able to add custom scene node animators to Irrlicht and to make it possible for the scene manager to save and load those external animators, simply implement this interface and register it in you scene manager via ISceneManager::registerSceneNodeAnimatorFactory. Note: When implementing your own scene node factory, don't call ISceneNodeManager::grab() to increase the reference counter of the scene node manager. This is not necessary because the scene node manager will grab() the factory anyway, and otherwise cyclic references will be created and the scene manager and all its nodes won't get deallocated.
Definition at line 27 of file ISceneNodeAnimatorFactory.h.
|
pure virtual |
creates a scene node animator based on its type name
typeName | Type of the scene node animator to add. |
target | Target scene node of the new animator. |
|
pure virtual |
creates a scene node animator based on its type id
type | Type of the scene node animator to add. |
target | Target scene node of the new animator. |
|
pure virtual |
returns amount of scene node animator types this factory is able to create
|
pure virtual |
returns type of a createable scene node animator type
idx | Index of scene node animator type in this factory. Must be a value between 0 and getCreatableSceneNodeTypeCount() |
|
pure virtual |
returns type name of a createable scene node animator type
type | Type of scene node animator. |
|
pure virtual |
returns type name of a createable scene node animator type
idx | Index of scene node animator type in this factory. Must be a value between 0 and getCreatableSceneNodeAnimatorTypeCount() |