nuclear@0: #ifndef APP_H_ nuclear@0: #define APP_H_ nuclear@0: nuclear@0: bool app_init(); nuclear@0: void app_shutdown(); nuclear@0: nuclear@0: void app_display(); nuclear@0: void app_reshape(int x, int y); nuclear@0: void app_keyboard(int key, bool pressed, int x, int y); nuclear@0: void app_mouse_button(int bn, bool pressed, int x, int y); nuclear@0: void app_mouse_motion(int x, int y); nuclear@0: nuclear@0: /* provided by the frontend */ nuclear@0: enum { nuclear@0: MOD_SHIFT = 1, nuclear@0: MOD_ALT = 2, nuclear@0: MOD_CTRL = 4 nuclear@0: }; nuclear@0: nuclear@0: void swap_buffers(); nuclear@0: void redisplay(); nuclear@0: void quit(); nuclear@0: void get_window_size(int *xsz, int *ysz); nuclear@0: nuclear@0: unsigned int get_modifiers(); nuclear@0: nuclear@0: #endif // APP_H_