7 #include "player_ragdoll.h"
8 #include "player_model.h"
11 * Defines a set of routines used to interact with the player
14 #define PLAYER_API VG_STATIC
15 typedef struct player_instance player_instance
;
16 typedef mdl_keyframe player_pose
[32];
17 typedef struct player_animation player_animation
;
19 struct player_animation
22 camera camera_firstperson
,
34 PLAYER_API
void player_create ( player_instance
*player
);
39 PLAYER_API
void player_use_avatar ( player_instance
*player
,
40 struct player_avatar
*av
);
41 PLAYER_API
void player_use_mesh ( player_instance
*player
, glmesh
*mesh
);
42 PLAYER_API
void player_use_texture ( player_instance
*player
, vg_tex2d
*tex
);
47 * ----------------------------------------------------------------------------
49 PLAYER_API
void player__bind ( player_instance
*player
);
50 PLAYER_API
void player__pre_update ( player_instance
*player
);
51 PLAYER_API
void player__update ( player_instance
*player
);
52 PLAYER_API
void player__post_update ( player_instance
*player
);
53 PLAYER_API
void player__pre_render ( player_instance
*player
);
54 PLAYER_API
void player__render ( camera
*cam
, player_instance
*player
);
55 PLAYER_API
void player__im_gui ( player_instance
*player
);
59 * ----------------------------------------------------------------------------
61 PLAYER_API
void player__spawn ( player_instance
*player
,
62 struct respawn_point
*rp
);
63 PLAYER_API
void player__kill ( player_instance
*player
);
64 PLAYER_API
void player__pass_gate ( player_instance
*player
,
65 teleport_gate
*gate
);
69 * ----------------------------------------------------------------------------
71 PLAYER_API
void player__debugtext( int size
, const char *fmt
, ... );
73 #endif /* PLAYER_API_H */