vrfileman

annotate src/app.h @ 6:b041bc1c38ad

layout
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 03 Feb 2015 15:42:03 +0200
parents dca518e371cf
children
rev   line source
nuclear@0 1 #ifndef APP_H_
nuclear@0 2 #define APP_H_
nuclear@0 3
nuclear@0 4 bool app_init();
nuclear@0 5 void app_shutdown();
nuclear@0 6
nuclear@0 7 void app_display();
nuclear@0 8 void app_reshape(int x, int y);
nuclear@0 9 void app_keyboard(int key, bool pressed, int x, int y);
nuclear@0 10 void app_mouse_button(int bn, bool pressed, int x, int y);
nuclear@0 11 void app_mouse_motion(int x, int y);
nuclear@2 12 void app_sball_motion(float x, float y, float z);
nuclear@2 13 void app_sball_rotate(float x, float y, float z);
nuclear@2 14 void app_sball_button(int bn, bool pressed);
nuclear@0 15
nuclear@0 16 /* provided by the frontend */
nuclear@0 17 enum {
nuclear@0 18 MOD_SHIFT = 1,
nuclear@0 19 MOD_ALT = 2,
nuclear@0 20 MOD_CTRL = 4
nuclear@0 21 };
nuclear@0 22
nuclear@0 23 void swap_buffers();
nuclear@0 24 void redisplay();
nuclear@0 25 void quit();
nuclear@0 26 void get_window_size(int *xsz, int *ysz);
nuclear@0 27
nuclear@0 28 unsigned int get_modifiers();
nuclear@0 29
nuclear@0 30 #endif // APP_H_