LeeMcQueen / GameDemo

Demo
0 stars 0 forks source link

Animation class #6

Closed LeeMcQueen closed 3 years ago

LeeMcQueen commented 3 years ago

class Animation {

public:

Animation(){}
~Animation(){}

void setDuration( const float duration ){ duration_ = duration; }
void setTicksPerSecond ( const float ticksPerSecond ) { ticksPerSecond_ = ticksPerSecond; }
void setBoneTransforms ( const std::unordered_map<std::string, BoneTransformTrack> boneTransforms ) { boneTransforms_ = boneTransforms; }
float getDuration() const { return duration_; }
float getTicksPerSecond() const { return ticksPerSecond_; }
std::unordered_map<std::string, BoneTransformTrack> getTicksperSecond() const { return boneTransforms_; }

private:

float duration_;
float ticksPerSecond_ = 1.0f;
std::unordered_map<std::string, BoneTransformTrack> boneTransforms_;

}