6#include <assimp/scene.h>
25 Animation(
const std::string& animationDirPath,
const std::string& animName,
int frames);
34 inline const std::map<std::string,BoneInfo>&
getBoneIDMap() {
return m_boneInfoMap; }
35 inline Model*
getFrame(
int frame) {
return model_keyframes[(frame % model_keyframes.size())]; }
39 void readMissingBones(
const aiAnimation* animation,
Model& model);
45 std::vector<Bone> m_bones;
47 std::map<std::string, BoneInfo> m_boneInfoMap;
48 std::vector<Model*> model_keyframes;
Definition: animation.hpp:19
float getTicksPerSecond()
Definition: animation.hpp:31
const AssimpNodeData & getRootNode()
Definition: animation.hpp:33
int getKeyframeSize()
Definition: animation.hpp:36
~Animation()
Definition: animation.hpp:27
Model * getFrame(int frame)
Definition: animation.hpp:35
Bone * findBone(const std::string &name)
Definition: animation.cpp:31
const std::map< std::string, BoneInfo > & getBoneIDMap()
Definition: animation.hpp:34
float getDuration()
Definition: animation.hpp:32
Definition: model.hpp:124
GLenum src
Definition: glad.h:2677
GLuint const GLchar * name
Definition: glad.h:1846
Definition: animation.hpp:12
std::string name
Definition: animation.hpp:14
std::vector< AssimpNodeData > children
Definition: animation.hpp:16
glm::mat4 transformation
Definition: animation.hpp:13
int numChildren
Definition: animation.hpp:15