5 extern int win_width, win_height;
6 extern float win_aspect;
7 extern bool opt_gear_wireframe;
10 extern unsigned int sdr_ltmap, sdr_ltmap_notex;
18 bool app_init(int argc, char **argv);
22 void app_reshape(int x, int y);
24 void app_keyboard(int key, bool pressed);
25 void app_mouse_button(int bn, bool pressed, int x, int y);
26 void app_mouse_motion(int x, int y);
27 void app_mouse_delta(int dx, int dy);
29 void app_gamepad_axis(int axis, float val);
30 void app_gamepad_button(int bn, bool pressed);
32 // the following functions are implemented by the backend (main.cc)
34 void app_swap_buffers();
35 unsigned int app_get_modifiers();
37 void app_resize(int x, int y);
38 void app_fullscreen(bool fs);
39 void app_toggle_fullscreen();
40 bool app_is_fullscreen();
41 void app_grab_mouse(bool grab);
42 void app_toggle_grab_mouse();
43 bool app_is_mouse_grabbed();