#include "model.h"
#include "skeleton.h"
+#include "camera.h"
+#include "world.h"
struct player_avatar
{
id_board;
};
-struct player_model
-{
- glmesh mesh;
- GLuint texture;
-};
-
enum eboard_truck{
k_board_truck_back = 0,
k_board_truck_front = 1
k_board_wheel_br = 3,
};
-struct player_board
-{
+struct player_board{
+ mdl_context model;
+
glmesh mesh;
GLuint texture;
board;
};
+struct player_model{
+ glmesh mesh;
+ GLuint texture;
+};
+
+enum board_shader{
+ k_board_shader_player,
+ k_board_shader_entity
+};
+
+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 render_board( camera *cam, world_instance *world,
+ struct player_board *board, m4x3f root,
+ enum board_shader shader );
+
#endif /* PLAYER_RENDER_H */