X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fapp.h;h=12b30725a17d8fc334dd6f11c58938bc468db6fe;hb=dbcb9345c23c5c027d808915962843e7db2d14aa;hp=926c2d24abf9a84ed8f735b0e19e2220c7b343b1;hpb=84484521a697fe60f63bff077b9ba7475a45e54e;p=laserbrain_demo diff --git a/src/app.h b/src/app.h index 926c2d2..12b3072 100644 --- a/src/app.h +++ b/src/app.h @@ -1,6 +1,29 @@ #ifndef APP_H_ #define APP_H_ +extern long time_msec; +extern int win_width, win_height; extern bool opt_gear_wireframe; +enum { + MOD_SHIFT = 1, + MOD_ALT = 2, + MOD_CTRL = 4 +}; + +bool app_init(); +void app_cleanup(); + +void app_display(); +void app_reshape(int x, int y); + +void app_keyboard(int key, bool pressed); +void app_mouse_button(int bn, bool pressed, int x, int y); +void app_mouse_motion(int x, int y); + +// the following functions are implemented by the backend (main.cc) +void app_quit(); +void app_swap_buffers(); +unsigned int app_get_modifiers(); + #endif // APP_H_