Load animation data into model

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-02 12:42:09 +01:00
1 parent f24a920e66
commit ffa0beb55a
3 files changed
+85 -4

No files matched your search

+13
View File
@@ -22,11 +22,24 @@ typedef struct {
vec3_t scale;
} bone_t;
typedef struct {
vec3_t *translations;
vec4_t *rotations;
vec3_t *scales;
} animation_bone_t;
typedef struct {
float *times;
size_t keyframe_count;
animation_bone_t *bones;
} animation_t;
typedef struct {
vertex_t *vertices;
index_t *indices;
bone_t *bones;
mat4_t *inverse_bind_matrices;
animation_t animation;
size_t vertex_count;
size_t index_count;
size_t bone_count;