EHS
AnimBone.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/EHS.h"
4#include "ehs/Array.h"
5#include "KeyFrame.h"
6
7namespace ehs
8{
9 class EHS_LIB_IO AnimBone
10 {
11 private:
12 UInt_8 boneId;
13 Array<KeyFrame> keyFrames;
14
15 public:
16 AnimBone();
17
18 AnimBone(const UInt_8 boneId);
19
20 AnimBone(const UInt_8 boneId, const UInt_64 size);
21
22 AnimBone(const UInt_8 boneId, Array<KeyFrame> keyFrames);
23
24 AnimBone(AnimBone&& anim) noexcept;
25
26 AnimBone(const AnimBone& anim);
27
28 AnimBone& operator=(AnimBone&& anim) noexcept;
29
30 AnimBone& operator=(const AnimBone& anim);
31
32 UInt_8 GetBoneId() const;
33
34 Array<KeyFrame> GetKeyFrames() const;
35
36 Array<KeyFrame>& GetKeyFrames();
37
38 float GetPrevAndNext(KeyFrame& prev, KeyFrame& next, const float elapsed) const;
39 };
40}
Definition: AnimBone.h:10
Definition: Array.h:16
Definition: KeyFrame.h:13
Definition: Anchor.h:6
unsigned char UInt_8
Definition: Types.h:43