OpenPolygon  1.0.0
OpenPolygon is a Rendering Engine
Public Types | Public Member Functions | Protected Member Functions | List of all members
Engine::AnimationManager Class Reference

The AnimationManager controlled Animations. More...

#include <animationmanager.h>

Inheritance diagram for Engine::AnimationManager:

Public Types

using AnimationMap = std::map< uint, Animation * >
 
using AnimLoaderList = std::list< AnimationLoader * >
 

Public Member Functions

void prepareVBO (Animation *anim, Mesh *mesh)
 AnimationManager::prepareVBO. More...
 
void AddTransformations (Animation *anim, Mesh *mesh)
 
AnimationcreateAnimation (const std::string &animation_name, const std::string &motion_file, Mesh *mesh) throw ( std::runtime_error )
 createAnimation More...
 
void CreateBones (Animation *animation, const std::string &motion_file)
 
AnimationgetAnimation (uint component_id)
 getAnimation More...
 
void destroy (uint component_id)
 remove More...
 
const NodeAnimSceneReadFile (const std::string &motion_file, unsigned int flags)
 ReadFile. More...
 
bool IsExtensionSupported (const std::string &extension)
 IsExtensionSupported. More...
 
void registerLoader (AnimationLoader *loader)
 registerLoader More...
 

Protected Member Functions

void addExtensionSupport (const std::string &extension)
 addExtensionSupport More...
 
void prepareAnimation (Animation *anim, Mesh *mesh)
 createBoneIndex More...
 

Detailed Description

The AnimationManager controlled Animations.

Member Function Documentation

void AnimationManager::addExtensionSupport ( const std::string &  extension)
protected

addExtensionSupport

Add new Extension

Parameters
extension
Animation * AnimationManager::createAnimation ( const std::string &  animation_name,
const std::string &  motion_file,
Mesh mesh 
)
throw (std::runtime_error
)

createAnimation

Create a New Animation with Animation Name & Animation Motion file

Parameters
animation_name
motion_file: (./resource/animation.bvh)
Returns
void AnimationManager::destroy ( uint  component_id)

remove

Destroy Animation

Parameters
component_id
Animation * AnimationManager::getAnimation ( uint  component_id)

getAnimation

Return Animation by Component ID

Parameters
component_id
Returns
bool AnimationManager::IsExtensionSupported ( const std::string &  extension)

IsExtensionSupported.

Is Extension Supported then return true otherwise is false

Parameters
extension: ".bvh"
Returns
void AnimationManager::prepareAnimation ( Animation anim,
Mesh mesh 
)
protected

createBoneIndex

Create a Bone Index for the Animation Shader

Parameters
anim
mesh
void AnimationManager::prepareVBO ( Animation anim,
Mesh mesh 
)

AnimationManager::prepareVBO.

Update Shadow VBO - CPU Skinning

Parameters
anim
mesh
const NodeAnimScene * AnimationManager::ReadFile ( const std::string &  motion_file,
unsigned int  flags 
)

ReadFile.

Read Animation File

Parameters
motion_file
flags
Returns
NodeAnimScene
void AnimationManager::registerLoader ( AnimationLoader loader)

registerLoader

Register new AnimationLoader

Parameters
loader

The documentation for this class was generated from the following files: