18 #ifndef ANIMATIONMANAGER_H
19 #define ANIMATIONMANAGER_H
22 #include "animation.h"
24 #include "nodeanimscene.h"
29 static const int POS_FLIP_YZ = 0x1;
32 static const int ROT_FLIP_YZ = 0x2;
35 static const int ABS_POSITIONS = 0x4;
72 using AnimationMap = std::map< uint , Animation * >;
75 using AnimLoaderList = std::list< AnimationLoader * >;
95 const std::string & motion_file ,
96 Mesh * mesh )
throw( std::runtime_error );
99 void CreateBones(
Animation * animation ,
const std::string & motion_file );
115 void destroy( uint component_id );
163 AnimationMap mAnimationMap;
167 AnimLoaderList mAnimationLoaders;
173 #endif // ANIMATIONMANAGER_H
The AnimationManager controlled Animations.
Definition: animationmanager.h:67
Animation * getAnimation(uint component_id)
getAnimation
Definition: AnimationManager.cpp:342
void destroy(uint component_id)
remove
Definition: AnimationManager.cpp:349
void addExtensionSupport(const std::string &extension)
addExtensionSupport
Definition: AnimationManager.cpp:372
void registerLoader(AnimationLoader *loader)
registerLoader
Definition: AnimationManager.cpp:366
The AnimationLoader is a interface class for custom Loader specifically for Animations.
Definition: animationmanager.h:40
void prepareVBO(Animation *anim, Mesh *mesh)
AnimationManager::prepareVBO.
Definition: AnimationManager.cpp:39
unsigned int mFlags
Definition: animationmanager.h:59
const NodeAnimScene * ReadFile(const std::string &motion_file, unsigned int flags)
ReadFile.
Definition: AnimationManager.cpp:377
bool IsExtensionSupported(const std::string &extension)
IsExtensionSupported.
Definition: AnimationManager.cpp:355
The Mesh class.
Definition: mesh.h:32
virtual void ReadFile(const std::string &motion_file, NodeAnimScene *node_anim_scene)=0
ReadFile.
Animation * createAnimation(const std::string &animation_name, const std::string &motion_file, Mesh *mesh)
createAnimation
Definition: AnimationManager.cpp:257
std::string mExtension
Definition: animationmanager.h:60
The NodeAnimScene class.
Definition: nodeanimscene.h:36
The Animation class.
Definition: animation.h:32
void prepareAnimation(Animation *anim, Mesh *mesh)
createBoneIndex
Definition: AnimationManager.cpp:161