curvedraw

view src/app.h @ 3:bf78387a9925

pan/zoom, grid snapping
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 17 Dec 2015 07:10:10 +0200
parents 8e524989c904
children 7f795f7fecd6
line source
1 #ifndef APP_H_
2 #define APP_H_
4 extern int win_width, win_height;
5 extern float win_aspect;
7 bool app_init(int argc, char **argv);
8 void app_cleanup();
10 void app_draw();
11 void app_reshape(int x, int y);
12 void app_keyboard(int key, bool pressed);
13 void app_mouse_button(int bn, bool pressed, int x, int y);
14 void app_mouse_motion(int x, int y);
16 void post_redisplay(); // in main.cc
18 #endif // APP_H_