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_shadow, sdr_shadow_notex;
24 /* XXX make sure these match with SDL_GameControllerButton */
43 bool app_init(int argc, char **argv);
47 void app_reshape(int x, int y);
49 void app_keyboard(int key, bool pressed);
50 void app_mouse_button(int bn, bool pressed, int x, int y);
51 void app_mouse_motion(int x, int y);
52 void app_mouse_delta(int dx, int dy);
54 void app_gamepad_axis(int axis, float val);
55 void app_gamepad_button(int bn, bool pressed);
57 // the following functions are implemented by the backend (main.cc)
59 void app_swap_buffers();
60 unsigned int app_get_modifiers();
62 void app_resize(int x, int y);
63 void app_fullscreen(bool fs);
64 void app_toggle_fullscreen();
65 bool app_is_fullscreen();
66 void app_grab_mouse(bool grab);
67 void app_toggle_grab_mouse();
68 bool app_is_mouse_grabbed();