Load animation data into model
This commit is contained in:
1 parent
f24a920e66
commit
ffa0beb55a
3 files changed
+85
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user