modular stuffs
[carveJwlIkooP6JGAAIwe30JlM.git] / player_render.h
1 #ifndef PLAYER_RENDER_H
2 #define PLAYER_RENDER_H
3
4 #include "model.h"
5 #include "skeleton.h"
6
7 struct player_avatar
8 {
9 mdl_context meta;
10 struct skeleton sk;
11
12 u32 id_hip,
13 id_ik_hand_l,
14 id_ik_hand_r,
15 id_ik_elbow_l,
16 id_ik_elbow_r,
17 id_head,
18 id_ik_foot_l,
19 id_ik_foot_r,
20 id_ik_knee_l,
21 id_ik_knee_r,
22 id_wheel_l,
23 id_wheel_r,
24 id_board;
25 };
26
27 struct player_model
28 {
29 glmesh mesh;
30 GLuint texture;
31 };
32
33 enum eboard_truck{
34 k_board_truck_back = 0,
35 k_board_truck_front = 1
36 };
37
38 enum eboard_wheel{
39 k_board_wheel_fl = 0,
40 k_board_wheel_fr = 1,
41 k_board_wheel_bl = 2,
42 k_board_wheel_br = 3,
43 };
44
45 struct player_board
46 {
47 glmesh mesh;
48 GLuint texture;
49
50 v4f wheel_positions[4],
51 truck_positions[2],
52 board_position;
53
54 mdl_submesh wheels[4],
55 trucks[2],
56 board;
57 };
58
59 #endif /* PLAYER_RENDER_H */