Files
gpu-renderer/animation.h
T

19 lines
418 B
C

#ifndef ANIMATION_H
#define ANIMATION_H
#include "model.h"
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_start(animation_state_t *state, const model_t *model);
void animation_update(animation_state_t *state, const model_t *model);
#endif