-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAnimation.h
More file actions
36 lines (26 loc) · 752 Bytes
/
Copy pathAnimation.h
File metadata and controls
36 lines (26 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef ANIMATION_H_
#define ANIMATION_H_
#include "Globals.h"
#include "Application.h"
#include "Keyframe.h"
class Animation
{
public:
Animation() {}
~Animation() {}
string name;
double lenght = 0; //seconds
int keyFrameCount = 0;
vector<Keyframe*> keyframes; //here we store a list of all bones and keyframes
std::map<uint, Keyframe*> keyframes_list;
public:
void SetName(string name_) { name = name_; }
string GetName() { return name; }
void setLenght(double lenght_) { lenght = lenght_; }
double GetLength() { return lenght; }
std::map<uint, Keyframe*>* GetKeyframes() {
return &keyframes_list;
};
};
//mirar en qorden de tiempo me pasan los keyframes de los bones
#endif