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