move location of main camera to g_render
[carveJwlIkooP6JGAAIwe30JlM.git] / player.h
index ea4ef46605d5a7ad5a0e03359fa42610eda2d398..ff8c2e1ed653047b4c5828ebbebf740e4b04df49 100644 (file)
--- a/player.h
+++ b/player.h
@@ -28,13 +28,14 @@ struct player_cam_controller {
 #include "player_model.h"
 #include "player_render.h"
 
-struct player_subsystem_interface{
+struct player_subsystem_interface
+{
    void(*system_register)(void);
    void(*bind)(void);
    void(*pre_update)(void);
    void(*update)(void);
    void(*post_update)(void);
-   void(*im_gui)(void);
+   void(*im_gui)( ui_context *ctx );
    void(*animate)(void);
    void(*pose)( void *animator, player_pose *pose );
    void(*effects)( void *animator, m4x3f *final_mtx, struct player_board *board,
@@ -168,7 +169,7 @@ extern struct player_subsystem_interface *player_subsystems[];
  */
 
 void player_init(void);
-void player__debugtext( int size, const char *fmt, ... );
+void player__debugtext( ui_context *ctx, int size, const char *fmt, ... );
 void player__use_mesh( glmesh *mesh );
 void player__use_model( u16 reg_id );
 
@@ -178,7 +179,7 @@ void player__update(void);
 void player__post_update(void);
 
 void player__pass_gate( u32 id );
-void player__im_gui(void);
+void player__im_gui( ui_context *ctx );
 void player__setpos( v3f pos );
 void player__spawn( ent_spawn *rp );
 void player__clean_refs(void);