Implement basic keyframe-per-frame animation
This commit is contained in:
1 parent
2a603dc364
commit
4c94812b48
3 files changed
+40
-53
No files matched your search
+4
-1
@@ -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
|
||||
Reference in new issue
Block a user