vrfileman

annotate src/app.h @ 0:dca518e371cf

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 30 Jan 2015 12:25:16 +0200
parents
children 282da6123fd4
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@0 12
nuclear@0 13 /* provided by the frontend */
nuclear@0 14 enum {
nuclear@0 15 MOD_SHIFT = 1,
nuclear@0 16 MOD_ALT = 2,
nuclear@0 17 MOD_CTRL = 4
nuclear@0 18 };
nuclear@0 19
nuclear@0 20 void swap_buffers();
nuclear@0 21 void redisplay();
nuclear@0 22 void quit();
nuclear@0 23 void get_window_size(int *xsz, int *ysz);
nuclear@0 24
nuclear@0 25 unsigned int get_modifiers();
nuclear@0 26
nuclear@0 27 #endif // APP_H_