fix rendering issue in workshop board preview
[carveJwlIkooP6JGAAIwe30JlM.git] / player_glide.h
1 #ifndef PLAYER_GLIDE_H
2 #define PLAYER_GLIDE_H
3
4 #include "player.h"
5
6 struct player_glide {
7 struct skeleton_anim *anim_temp;
8
9 struct player_glide_animator {
10 v3f root_co;
11 v4f root_q;
12 }
13 animator;
14
15 v3f info_lift,
16 info_slip,
17 info_drag;
18
19 u32 ticker;
20 }
21 static player_glide;
22
23 static void player_glide_pre_update(void);
24 static void player_glide_update(void);
25 static void player_glide_post_update(void);
26 static void player_glide_animate(void);
27 static void player_glide_pose( void *animator, player_pose *pose );
28
29 static void player_glide_post_animate(void);
30 static void player_glide_im_gui(void);
31 static void player_glide_bind(void);
32
33 struct player_subsystem_interface static player_subsystem_glide = {
34 .pre_update = player_glide_pre_update,
35 .update = player_glide_update,
36 .post_update = player_glide_post_update,
37 .animate = player_glide_animate,
38 .pose = player_glide_pose,
39 .post_animate = player_glide_post_animate,
40 .im_gui = player_glide_im_gui,
41 .bind = player_glide_bind,
42
43 .animator_data = &player_glide.animator,
44 .animator_size = sizeof(player_glide.animator),
45 .name = "Glide"
46 };
47
48 #endif /* PLAYER_GLIDE_H */