Merge branch 'nouveau-import'
[mesa.git] / src / glut / mini / callback.c
1 /*
2 * Mesa 3-D graphics library
3 * Version: 3.4
4 * Copyright (C) 1995-1998 Brian Paul
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 /*
22 * DOS/DJGPP glut driver v1.0 for Mesa 4.0
23 *
24 * Copyright (C) 2002 - Borca Daniel
25 * Email : dborca@yahoo.com
26 * Web : http://www.geocities.com/dborca
27 */
28
29
30 #include "GL/glut.h"
31 #include "internal.h"
32
33
34 void APIENTRY glutDisplayFunc (void (GLUTCALLBACK *func) (void))
35 {
36 display_func = func;
37 }
38
39
40 void APIENTRY glutReshapeFunc (void (GLUTCALLBACK *func) (int width, int height))
41 {
42 reshape_func = func;
43 }
44
45
46 void APIENTRY glutKeyboardFunc (void (GLUTCALLBACK *func) (unsigned char key, int x, int y))
47 {
48 keyboard_func = func;
49 }
50
51
52 void APIENTRY glutMouseFunc (void (GLUTCALLBACK *func) (int button, int state, int x, int y))
53 {
54 mouse_func = func;
55 }
56
57
58 void APIENTRY glutMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
59 {
60 motion_func = func;
61 }
62
63
64 void APIENTRY glutPassiveMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
65 {
66 passive_motion_func = func;
67 }
68
69
70 void APIENTRY glutEntryFunc (void (GLUTCALLBACK *func) (int state))
71 {
72 entry_func = func;
73 }
74
75
76 void APIENTRY glutVisibilityFunc (void (GLUTCALLBACK *func) (int state))
77 {
78 visibility_func = func;
79 }
80
81
82 void APIENTRY glutIdleFunc (void (GLUTCALLBACK *func) (void))
83 {
84 idle_func = func;
85 }
86
87
88 void APIENTRY glutTimerFunc (unsigned int millis, void (GLUTCALLBACK *func) (int value), int value)
89 {
90 }
91
92
93 void APIENTRY glutMenuStateFunc (void (GLUTCALLBACK *func) (int state))
94 {
95 menu_state_func = func;
96 }
97
98
99 void APIENTRY glutSpecialFunc (void (GLUTCALLBACK *func) (int key, int x, int y))
100 {
101 special_func = func;
102 }
103
104
105 void APIENTRY glutSpaceballMotionFunc (void (GLUTCALLBACK *func) (int x, int y, int z))
106 {
107 }
108
109
110 void APIENTRY glutSpaceballRotateFunc (void (GLUTCALLBACK *func) (int x, int y, int z))
111 {
112 }
113
114
115 void APIENTRY glutSpaceballButtonFunc (void (GLUTCALLBACK *func) (int button, int state))
116 {
117 }
118
119
120 void APIENTRY glutButtonBoxFunc (void (GLUTCALLBACK *func) (int button, int state))
121 {
122 }
123
124
125 void APIENTRY glutDialsFunc (void (GLUTCALLBACK *func) (int dial, int value))
126 {
127 }
128
129
130 void APIENTRY glutTabletMotionFunc (void (GLUTCALLBACK *func) (int x, int y))
131 {
132 }
133
134
135 void APIENTRY glutTabletButtonFunc (void (GLUTCALLBACK *func) (int button, int state, int x, int y))
136 {
137 }
138
139
140 void APIENTRY glutMenuStatusFunc (void (GLUTCALLBACK *func) (int status, int x, int y))
141 {
142 }
143
144
145 void APIENTRY glutOverlayDisplayFunc (void (GLUTCALLBACK *func) (void))
146 {
147 }
148
149
150 void APIENTRY glutWindowStatusFunc (void (GLUTCALLBACK *func) (int state))
151 {
152 }