curvedraw

view src/app.h @ 16:7f795f7fecd6

readme and COPYING
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 20 Dec 2015 10:55:57 +0200
parents 7dcd0f6113e5
children
line source
1 /*
2 curvedraw - a simple program to draw curves
3 Copyright (C) 2015 John Tsiombikas <nuclear@member.fsf.org>
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef APP_H_
19 #define APP_H_
21 extern int win_width, win_height;
22 extern float win_aspect;
24 bool app_init(int argc, char **argv);
25 void app_cleanup();
27 void app_draw();
28 void app_reshape(int x, int y);
29 void app_keyboard(int key, bool pressed);
30 void app_mouse_button(int bn, bool pressed, int x, int y);
31 void app_mouse_motion(int x, int y);
33 void post_redisplay(); // in main.cc
35 #endif // APP_H_