Initial revision
[lsystem3d.git] / lsystem3d / src / callbacks.h
1 // Copyright (C) 2006 Erik Dahlberg
2 //
3 // This file is part of LSystem3d.
4 //
5 // LSystem3D is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
9 //
10 // LSystem3D 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.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with LSystem3D; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19
20
21
22 #ifndef CALLBACKS_H
23 #define CALLBACKS_H
24
25
26
27 // GLUT callback functions
28 // -----------------------
29
30 /**
31 * Key press
32 * @param key the key
33 * @param x mouse x-coordinate
34 * @param y mouse y-coordinate
35 */
36 void glutKeyboardCB(unsigned char key, int x, int y);
37
38 /**
39 * Special key press
40 * @param key the key
41 * @param x mouse x-coordinate
42 * @param y mouse y-coordinate
43 */
44 void glutSpecialCB(int key, int x, int y);
45
46 /**
47 * Redraw of screen
48 */
49 void glutDisplayCB();
50
51 /**
52 * Idling
53 */
54 void glutIdleCB();
55
56
57
58 // GLUI callback functions
59 // -----------------------
60
61 /**
62 * Angle changes
63 * @param id not used
64 */
65 void gluiSpinnerAngleCB(int id);
66
67 /**
68 * Reset button pressed
69 * @param id not used
70 */
71 void gluiButtonResetCB(int id);
72
73 /**
74 * Generate button pressed
75 * @param id not used
76 */
77 void gluiButtonGenerateCB(int id);
78
79
80
81 #endif