5 int win_width, win_height;
6 int vp_width, vp_height; /* viewport size differs from win size during VR eye rendering */
41 /* XXX make sure these match with SDL_GameControllerButton */
60 int game_init(int argc, char **argv);
61 void game_cleanup(void);
63 void game_display(void);
64 void game_reshape(int x, int y);
66 void game_keyboard(int key, int pressed);
67 void game_mouse_button(int bn, int pressed, int x, int y);
68 void game_mouse_motion(int x, int y);
69 void game_mouse_wheel(int dir);
71 void game_gamepad_axis(int axis, float val);
72 void game_gamepad_button(int bn, int pressed);
74 /* the following functions are implemented by the backend (main.c) */
76 void game_swap_buffers(void);
77 unsigned int game_get_modifiers(void);
79 void game_resize(int x, int y);
80 void game_fullscreen(int fs);
81 void game_toggle_fullscreen(void);
82 int game_is_fullscreen(void);