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;
18 extern int fpexcept_enabled; // int so that C modules may fwd-delcare and use it
51 /* XXX make sure these match with SDL_GameControllerButton */
70 bool app_init(int argc, char **argv);
74 void app_reshape(int x, int y);
76 void app_keyboard(int key, bool pressed);
77 void app_mouse_button(int bn, bool pressed, int x, int y);
78 void app_mouse_motion(int x, int y);
79 void app_mouse_delta(int dx, int dy);
80 void app_mouse_wheel(int dir);
82 void app_gamepad_axis(int axis, float val);
83 void app_gamepad_button(int bn, bool pressed);
85 // the following functions are implemented by the backend (main.cc)
87 void app_swap_buffers();
88 unsigned int app_get_modifiers();
90 void app_resize(int x, int y);
91 void app_fullscreen(bool fs);
92 void app_toggle_fullscreen();
93 bool app_is_fullscreen();
94 void app_grab_mouse(bool grab);
95 void app_toggle_grab_mouse();
96 bool app_is_mouse_grabbed();