X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=laserbrain_demo;a=blobdiff_plain;f=src%2Fapp.h;h=0532be127b5f84d19868d8e905fb6d23a621271b;hp=926c2d24abf9a84ed8f735b0e19e2220c7b343b1;hb=ab9fd0ac34f8107ff8067607fad229d08b1c3935;hpb=b7c92831285013b2a0783bccaf3d900545ebb5ba diff --git a/src/app.h b/src/app.h index 926c2d2..0532be1 100644 --- a/src/app.h +++ b/src/app.h @@ -1,6 +1,22 @@ #ifndef APP_H_ #define APP_H_ +extern long time_msec; +extern int win_width, win_height; extern bool opt_gear_wireframe; +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(); + #endif // APP_H_