Implement basic keyframe-per-frame animation

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-02 15:32:46 +01:00
1 parent 2a603dc364
commit 4c94812b48
3 files changed
+40 -53

No files matched your search

+4 -1
View File
@@ -5,11 +5,14 @@
typedef struct {
mat4_t *bone_matrices;
bone_t *current;
unsigned keyframe;
} animation_state_t;
animation_state_t animation_init(const model_t *model);
void animation_cleanup(animation_state_t *state);
void animation_update(animation_state_t state, const model_t *model);
void animation_start(animation_state_t *state, const model_t *model);
void animation_update(animation_state_t *state, const model_t *model);
#endif