vrfileman
view src/app.h @ 3:2cbf85690e03
more stuff
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 01 Feb 2015 20:56:16 +0200 |
parents | dca518e371cf |
children |
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);
12 void app_sball_motion(float x, float y, float z);
13 void app_sball_rotate(float x, float y, float z);
14 void app_sball_button(int bn, bool pressed);
16 /* provided by the frontend */
17 enum {
18 MOD_SHIFT = 1,
19 MOD_ALT = 2,
20 MOD_CTRL = 4
21 };
23 void swap_buffers();
24 void redisplay();
25 void quit();
26 void get_window_size(int *xsz, int *ysz);
28 unsigned int get_modifiers();
30 #endif // APP_H_