start of a replay system
[carveJwlIkooP6JGAAIwe30JlM.git] / player_api.h
1 #ifndef PLAYER_API_H
2 #define PLAYER_API_H
3
4 #include "model.h"
5 #include "camera.h"
6 #include "entity.h"
7
8 #define PLAYER_API VG_STATIC
9 typedef struct player_instance player_instance;
10 typedef mdl_keyframe player_pose[32];
11 typedef struct player_animation player_animation;
12
13 struct player_animation{
14 player_pose pose;
15 v3f root_co;
16 v4f root_q;
17
18 enum player_animation_type {
19 k_player_animation_type_fk, /* regular FK animation */
20 k_player_animation_type_absolute /* decomposition of the final matrices */
21 }
22 type;
23 };
24
25 #endif /* PLAYER_API_H */