5 int win_width, win_height;
6 int vp_width, vp_height; /* viewport size differs from win size during VR eye rendering */
11 unsigned int joy_bnstate;
13 float view_matrix[16], proj_matrix[16];
46 /* XXX make sure these match with SDL_GameControllerButton */
65 /* XXX make sure these match with SDL_GameControllerAxis */
75 int game_init(int argc, char **argv);
76 void game_cleanup(void);
78 void game_display(void);
79 void game_reshape(int x, int y);
81 void game_keyboard(int key, int pressed);
82 void game_mouse_button(int bn, int pressed, int x, int y);
83 void game_mouse_motion(int x, int y);
84 void game_mouse_wheel(int dir);
86 void game_gamepad_axis(int axis, float val);
87 void game_gamepad_button(int bn, int pressed);
89 /* the following functions are implemented by the backend (main.c) */
91 void game_swap_buffers(void);
92 unsigned int game_get_modifiers(void);
94 void game_resize(int x, int y);
95 void game_fullscreen(int fs);
96 void game_toggle_fullscreen(void);
97 int game_is_fullscreen(void);
99 int game_num_joy_axes(void);
100 int game_num_joy_buttons(void);