a95e1171d57f7161023951044d80c65820e6a8a6
[vrfileman] / src / app.h
1 #ifndef APP_H_
2 #define APP_H_
3
4 #include "gmath/gmath.h"
5
6 extern int win_width, win_height;
7 extern float win_aspect;
8 extern long time_msec;
9
10 extern Mat4 view_matrix;
11
12
13 bool app_init(int argc, char **argv);
14 void app_cleanup();
15
16 void app_draw();
17 void app_reshape(int x, int y);
18 void app_keyboard(int key, bool pressed);
19 void app_mouse_button(int bn, bool pressed, int x, int y);
20 void app_mouse_motion(int x, int y);
21
22 // the following functions are implemented by the window system backend
23 void app_quit();
24 void app_redraw();
25 void app_swap_buffers();
26 long app_get_msec();
27
28 #endif  // APP_H_