5 int win_width, win_height;
6 int vp_width, vp_height; /* viewport size differs from win size during VR eye rendering */
10 float view_matrix[16], proj_matrix[16];
43 /* XXX make sure these match with SDL_GameControllerButton */
62 int game_init(int argc, char **argv);
63 void game_cleanup(void);
65 void game_display(void);
66 void game_reshape(int x, int y);
68 void game_keyboard(int key, int pressed);
69 void game_mouse_button(int bn, int pressed, int x, int y);
70 void game_mouse_motion(int x, int y);
71 void game_mouse_wheel(int dir);
73 void game_gamepad_axis(int axis, float val);
74 void game_gamepad_button(int bn, int pressed);
76 /* the following functions are implemented by the backend (main.c) */
78 void game_swap_buffers(void);
79 unsigned int game_get_modifiers(void);
81 void game_resize(int x, int y);
82 void game_fullscreen(int fs);
83 void game_toggle_fullscreen(void);
84 int game_is_fullscreen(void);