vrfileman
view src/app.h @ 1:9e3d77dad51b
moving on...
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 31 Jan 2015 20:01:35 +0200 |
parents | |
children | 282da6123fd4 |
line source
1 #ifndef APP_H_
2 #define APP_H_
4 bool app_init();
5 void app_shutdown();
7 void app_display();
8 void app_reshape(int x, int y);
9 void app_keyboard(int key, bool pressed, int x, int y);
10 void app_mouse_button(int bn, bool pressed, int x, int y);
11 void app_mouse_motion(int x, int y);
13 /* provided by the frontend */
14 enum {
15 MOD_SHIFT = 1,
16 MOD_ALT = 2,
17 MOD_CTRL = 4
18 };
20 void swap_buffers();
21 void redisplay();
22 void quit();
23 void get_window_size(int *xsz, int *ysz);
25 unsigned int get_modifiers();
27 #endif // APP_H_