curvedraw
annotate src/app.h @ 2:ce7aa9a0594c
improved curve editing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 17 Dec 2015 05:13:25 +0200 |
parents | 8e524989c904 |
children | 7f795f7fecd6 |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef APP_H_ |
nuclear@0 | 2 #define APP_H_ |
nuclear@0 | 3 |
nuclear@1 | 4 extern int win_width, win_height; |
nuclear@1 | 5 extern float win_aspect; |
nuclear@1 | 6 |
nuclear@0 | 7 bool app_init(int argc, char **argv); |
nuclear@0 | 8 void app_cleanup(); |
nuclear@0 | 9 |
nuclear@0 | 10 void app_draw(); |
nuclear@0 | 11 void app_reshape(int x, int y); |
nuclear@0 | 12 void app_keyboard(int key, bool pressed); |
nuclear@0 | 13 void app_mouse_button(int bn, bool pressed, int x, int y); |
nuclear@0 | 14 void app_mouse_motion(int x, int y); |
nuclear@0 | 15 |
nuclear@0 | 16 void post_redisplay(); // in main.cc |
nuclear@0 | 17 |
nuclear@0 | 18 #endif // APP_H_ |