X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_api.h;h=01658418794d65949eb3df214e407797707bf334;hb=09fc72b08113fa157a3abb2ded6086babedd10cf;hp=a009d6ddd4201e0594e957370109f77ffff3bab1;hpb=f48c3935c01da796b7ecb011a42d6576788b7648;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_api.h b/player_api.h index a009d6d..0165841 100644 --- a/player_api.h +++ b/player_api.h @@ -7,19 +7,24 @@ #define PLAYER_API VG_STATIC typedef struct player_instance player_instance; -typedef mdl_keyframe player_pose[32]; -typedef struct player_animation player_animation; +typedef struct player_pose player_pose; -struct player_animation{ - player_pose pose; - v3f root_co; - v4f root_q; - - enum player_animation_type { - k_player_animation_type_fk, /* regular FK animation */ - k_player_animation_type_absolute /* decomposition of the final matrices */ +struct player_pose{ + enum player_pose_type { + k_player_pose_type_fk, /* regular FK animation */ + k_player_pose_type_absolute /* decomposition of the final matrices */ } type; + + v3f root_co; + v4f root_q; + + mdl_keyframe keyframes[32]; + + struct player_board_pose { + f32 lean; + } + board; }; #endif /* PLAYER_API_H */