8 extern int win_width, win_height;
9 extern float win_aspect;
10 extern bool opt_gear_wireframe;
13 extern TextureSet texman;
14 extern SceneSet sceneman;
16 extern unsigned int sdr_ltmap, sdr_ltmap_notex;
49 /* XXX make sure these match with SDL_GameControllerButton */
68 bool app_init(int argc, char **argv);
72 void app_reshape(int x, int y);
74 void app_keyboard(int key, bool pressed);
75 void app_mouse_button(int bn, bool pressed, int x, int y);
76 void app_mouse_motion(int x, int y);
77 void app_mouse_delta(int dx, int dy);
78 void app_mouse_wheel(int dir);
80 void app_gamepad_axis(int axis, float val);
81 void app_gamepad_button(int bn, bool pressed);
83 // the following functions are implemented by the backend (main.cc)
85 void app_swap_buffers();
86 unsigned int app_get_modifiers();
88 void app_resize(int x, int y);
89 void app_fullscreen(bool fs);
90 void app_toggle_fullscreen();
91 bool app_is_fullscreen();
92 void app_grab_mouse(bool grab);
93 void app_toggle_grab_mouse();
94 bool app_is_mouse_grabbed();