refactor(1)
[carveJwlIkooP6JGAAIwe30JlM.git] / player_render.h
index a31f19a86fe128f4c4c48952c3389ff75a2fbd5c..4d5145ffbc56e3dfbfb7d3ded88696c621ad01df 100644 (file)
@@ -38,11 +38,15 @@ enum eboard_wheel{
    k_board_wheel_br = 3,
 };
 
-struct player_board{
-   mdl_context model;
-
+/* TODO: Fully featured dynamic models
+ * This is FAR from the final system we want at all, but it will do for now */
+struct dynamic_model_1texture{
    glmesh mesh;
    GLuint texture;
+};
+
+struct player_board{
+   struct dynamic_model_1texture mdl;
 
    v4f wheel_positions[4],
        truck_positions[2],
@@ -54,8 +58,7 @@ struct player_board{
 };
 
 struct player_model{
-   glmesh mesh;
-   GLuint texture;
+   struct dynamic_model_1texture mdl;
 };
 
 enum board_shader{
@@ -65,6 +68,8 @@ enum board_shader{
 
 VG_STATIC void player_board_load( struct player_board *mdl, const char *path );
 VG_STATIC void player_board_unload( struct player_board *mdl );
+
+VG_STATIC void dynamic_model_unload( struct dynamic_model_1texture *mdl );
 VG_STATIC void render_board( camera *cam, world_instance *world,
                              struct player_board *board, m4x3f root,
                              enum board_shader shader );