Files
vb01/animationController.h
T
devZoGok 9aa2981e70 expanded light sample
minor improvements
2021-10-19 19:06:41 +03:00

37 lines
827 B
C++

#ifndef ANIMATION_CONTROLLER_H
#define ANIMATION_CONTROLLER_H
#include <string>
#include <vector>
#include "animation.h"
namespace vb01{
class Skeleton;
class AnimationChannel;
class Vector3;
class Quaternion;
class Animatable;
class AnimationController{
public:
AnimationController(){}
~AnimationController(){}
void update();
Animation* getAnimation(std::string);
void addAnimationChannel(AnimationChannel *channel);
inline std::vector<Animation*> getAnimations(){return animations;}
inline void addAnimation(Animation *anim){animations.push_back(anim);}
private:
std::vector<Animation*> animations;
std::vector<AnimationChannel*> channels;
void transform(AnimationChannel*);
protected:
void onAnimationEnd(std::string){}
void onAnimationStart(std::string){}
};
}
#endif