9 extern int win_width, win_height;
10 extern float win_aspect;
11 extern bool opt_gear_wireframe;
14 extern TextureSet texman;
15 extern SceneSet sceneman;
17 extern unsigned int sdr_ltmap, sdr_ltmap_notex;
19 extern ExSelection exsel_active; // active (info/interact) exhibit
20 extern ExSelection exsel_grab_left, exsel_grab_right; // grabbed on each hand
21 extern ExSelection exsel_hover; // hover
23 extern int fpexcept_enabled; // int so that C modules may fwd-delcare and use it
56 /* XXX make sure these match with SDL_GameControllerButton */
75 bool app_init(int argc, char **argv);
79 void app_reshape(int x, int y);
81 void app_keyboard(int key, bool pressed);
82 void app_mouse_button(int bn, bool pressed, int x, int y);
83 void app_mouse_motion(int x, int y);
84 void app_mouse_delta(int dx, int dy);
85 void app_mouse_wheel(int dir);
87 void app_gamepad_axis(int axis, float val);
88 void app_gamepad_button(int bn, bool pressed);
90 // the following functions are implemented by the backend (main.cc)
92 void app_swap_buffers();
93 unsigned int app_get_modifiers();
95 void app_resize(int x, int y);
96 void app_fullscreen(bool fs);
97 void app_toggle_fullscreen();
98 bool app_is_fullscreen();
99 void app_grab_mouse(bool grab);
100 void app_toggle_grab_mouse();
101 bool app_is_mouse_grabbed();