ui notifications
[laserbrain_demo] / src / app.h
1 #ifndef APP_H_
2 #define APP_H_
3
4 extern long time_msec;
5 extern int win_width, win_height;
6 extern float win_aspect;
7 extern bool opt_gear_wireframe;
8
9 enum {
10         MOD_SHIFT       = 1,
11         MOD_ALT         = 2,
12         MOD_CTRL        = 4
13 };
14
15 bool app_init();
16 void app_cleanup();
17
18 void app_display();
19 void app_reshape(int x, int y);
20
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);
25
26 // the following functions are implemented by the backend (main.cc)
27 void app_quit();
28 void app_swap_buffers();
29 unsigned int app_get_modifiers();
30
31 #endif  // APP_H_