5 extern int win_width, win_height;
6 extern float win_aspect;
7 extern bool opt_gear_wireframe;
19 void app_reshape(int x, int y);
21 void app_keyboard(int key, bool pressed);
22 void app_mouse_button(int bn, bool pressed, int x, int y);
23 void app_mouse_motion(int x, int y);
24 void app_mouse_delta(int dx, int dy);
26 // the following functions are implemented by the backend (main.cc)
28 void app_swap_buffers();
29 unsigned int app_get_modifiers();
31 void app_resize(int x, int y);
32 void app_fullscreen(bool fs);
33 void app_toggle_fullscreen();
34 bool app_is_fullscreen();
35 void app_grab_mouse(bool grab);
36 void app_toggle_grab_mouse();
37 bool app_is_mouse_grabbed();