1 #ifndef PLAYER_RENDER_H
2 #define PLAYER_RENDER_H
30 k_board_truck_back
= 0,
31 k_board_truck_front
= 1
41 /* TODO: Fully featured dynamic models
42 * This is FAR from the final system we want at all, but it will do for now */
43 struct dynamic_model_1texture
{
49 struct dynamic_model_1texture mdl
;
51 v4f wheel_positions
[4],
55 mdl_submesh wheels
[4],
61 struct dynamic_model_1texture mdl
;
65 k_board_shader_player
,
69 static void dynamic_model_load( mdl_context
*ctx
,
70 struct dynamic_model_1texture
*mdl
,
72 static void dynamic_model_unload( struct dynamic_model_1texture
*mdl
);
74 static void player_board_load( struct player_board
*mdl
, const char *path
);
75 static void player_board_unload( struct player_board
*mdl
);
77 static void player_model_load( struct player_model
*board
, const char *path
);
78 static void player_model_unload( struct player_model
*board
);
80 static void render_board( camera
*cam
, world_instance
*world
,
81 struct player_board
*board
, m4x3f root
,
82 struct player_board_pose
*pose
,
83 enum board_shader shader
);
85 static void render_playermodel( camera
*cam
, world_instance
*world
,
87 struct player_model
*model
,
88 struct skeleton
*skeleton
,
90 static void apply_full_skeleton_pose( struct skeleton
*sk
, player_pose
*pose
,
92 static void lerp_player_pose( player_pose
*pose0
, player_pose
*pose1
, f32 t
,
95 #endif /* PLAYER_RENDER_H */