This commit is contained in:
2025-05-13 02:46:21 +03:00
parent 143e16692e
commit 86914b7fcc
610 changed files with 92343 additions and 2 deletions
+39
View File
@@ -0,0 +1,39 @@
#ifndef AnimationFrame_h__
#define AnimationFrame_h__
#include <vector>
#include "BoneTransform.h"
namespace LifeGraphics
{
struct AnimationFrame
{
int name;
float time;
int boneCount;
std::vector<BoneTransform> bonesTransformations;
AnimationFrame()
{
}
void getTransformations(BoneTransform* transform)
{
for(int i = 0; i < boneCount; i++)
transform[i] = bonesTransformations[i];
}
BoneTransform getTransform(int id)
{
return bonesTransformations[id];
}
void addBoneTransform(BoneTransform& tr)
{
bonesTransformations.push_back(tr);
boneCount++;
}
AnimationFrame(float frameTime)
:boneCount(0)
{
time = frameTime;
name = -1;
}
};
}
#endif // AnimationFrame_h__