1 #ifndef __FREEGLUT_STD_H__
2 #define __FREEGLUT_STD_H__
38 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
46 # define WIN32_LEAN_AND_MEAN
53 #include <mrpt/config.h>
54 #ifndef MRPT_BUILT_AS_DLL
55 # define FREEGLUT_STATIC
59 # ifdef FREEGLUT_STATIC
65 # if defined(_MSC_VER)
73 # if defined(FREEGLUT_EXPORTS)
74 # define FGAPI __declspec(dllexport)
76 # define FGAPI __declspec(dllimport)
79 # if defined(_MSC_VER)
88 # define FGAPIENTRY __stdcall
93 # if defined(_MSC_VER)
95 # pragma comment (lib, "winmm.lib")
96 # pragma comment (lib, "user32.lib")
97 # pragma comment (lib, "gdi32.lib")
98 # pragma comment (lib, "opengl32.lib")
99 # pragma comment (lib, "glu32.lib")
115 #define GLUT_API_VERSION 4
116 #define FREEGLUT_VERSION_2_0 1
117 #define GLUT_XLIB_IMPLEMENTATION 13
128 #define GLUT_KEY_F1 0x0001
129 #define GLUT_KEY_F2 0x0002
130 #define GLUT_KEY_F3 0x0003
131 #define GLUT_KEY_F4 0x0004
132 #define GLUT_KEY_F5 0x0005
133 #define GLUT_KEY_F6 0x0006
134 #define GLUT_KEY_F7 0x0007
135 #define GLUT_KEY_F8 0x0008
136 #define GLUT_KEY_F9 0x0009
137 #define GLUT_KEY_F10 0x000A
138 #define GLUT_KEY_F11 0x000B
139 #define GLUT_KEY_F12 0x000C
140 #define GLUT_KEY_LEFT 0x0064
141 #define GLUT_KEY_UP 0x0065
142 #define GLUT_KEY_RIGHT 0x0066
143 #define GLUT_KEY_DOWN 0x0067
144 #define GLUT_KEY_PAGE_UP 0x0068
145 #define GLUT_KEY_PAGE_DOWN 0x0069
146 #define GLUT_KEY_HOME 0x006A
147 #define GLUT_KEY_END 0x006B
148 #define GLUT_KEY_INSERT 0x006C
153 #define GLUT_LEFT_BUTTON 0x0000
154 #define GLUT_MIDDLE_BUTTON 0x0001
155 #define GLUT_RIGHT_BUTTON 0x0002
156 #define GLUT_DOWN 0x0000
157 #define GLUT_UP 0x0001
158 #define GLUT_LEFT 0x0000
159 #define GLUT_ENTERED 0x0001
164 #define GLUT_RGB 0x0000
165 #define GLUT_RGBA 0x0000
166 #define GLUT_INDEX 0x0001
167 #define GLUT_SINGLE 0x0000
168 #define GLUT_DOUBLE 0x0002
169 #define GLUT_ACCUM 0x0004
170 #define GLUT_ALPHA 0x0008
171 #define GLUT_DEPTH 0x0010
172 #define GLUT_STENCIL 0x0020
173 #define GLUT_MULTISAMPLE 0x0080
174 #define GLUT_STEREO 0x0100
175 #define GLUT_LUMINANCE 0x0200
180 #define GLUT_MENU_NOT_IN_USE 0x0000
181 #define GLUT_MENU_IN_USE 0x0001
182 #define GLUT_NOT_VISIBLE 0x0000
183 #define GLUT_VISIBLE 0x0001
184 #define GLUT_HIDDEN 0x0000
185 #define GLUT_FULLY_RETAINED 0x0001
186 #define GLUT_PARTIALLY_RETAINED 0x0002
187 #define GLUT_FULLY_COVERED 0x0003
194 #if defined(_MSC_VER) || defined(__CYGWIN__) || defined(__MINGW32__)
195 # define GLUT_STROKE_ROMAN ((void *)0x0000)
196 # define GLUT_STROKE_MONO_ROMAN ((void *)0x0001)
197 # define GLUT_BITMAP_9_BY_15 ((void *)0x0002)
198 # define GLUT_BITMAP_8_BY_13 ((void *)0x0003)
199 # define GLUT_BITMAP_TIMES_ROMAN_10 ((void *)0x0004)
200 # define GLUT_BITMAP_TIMES_ROMAN_24 ((void *)0x0005)
201 # define GLUT_BITMAP_HELVETICA_10 ((void *)0x0006)
202 # define GLUT_BITMAP_HELVETICA_12 ((void *)0x0007)
203 # define GLUT_BITMAP_HELVETICA_18 ((void *)0x0008)
221 # define GLUT_STROKE_ROMAN ((void *) &glutStrokeRoman)
222 # define GLUT_STROKE_MONO_ROMAN ((void *) &glutStrokeMonoRoman)
223 # define GLUT_BITMAP_9_BY_15 ((void *) &glutBitmap9By15)
224 # define GLUT_BITMAP_8_BY_13 ((void *) &glutBitmap8By13)
225 # define GLUT_BITMAP_TIMES_ROMAN_10 ((void *) &glutBitmapTimesRoman10)
226 # define GLUT_BITMAP_TIMES_ROMAN_24 ((void *) &glutBitmapTimesRoman24)
227 # define GLUT_BITMAP_HELVETICA_10 ((void *) &glutBitmapHelvetica10)
228 # define GLUT_BITMAP_HELVETICA_12 ((void *) &glutBitmapHelvetica12)
229 # define GLUT_BITMAP_HELVETICA_18 ((void *) &glutBitmapHelvetica18)
235 #define GLUT_WINDOW_X 0x0064
236 #define GLUT_WINDOW_Y 0x0065
237 #define GLUT_WINDOW_WIDTH 0x0066
238 #define GLUT_WINDOW_HEIGHT 0x0067
239 #define GLUT_WINDOW_BUFFER_SIZE 0x0068
240 #define GLUT_WINDOW_STENCIL_SIZE 0x0069
241 #define GLUT_WINDOW_DEPTH_SIZE 0x006A
242 #define GLUT_WINDOW_RED_SIZE 0x006B
243 #define GLUT_WINDOW_GREEN_SIZE 0x006C
244 #define GLUT_WINDOW_BLUE_SIZE 0x006D
245 #define GLUT_WINDOW_ALPHA_SIZE 0x006E
246 #define GLUT_WINDOW_ACCUM_RED_SIZE 0x006F
247 #define GLUT_WINDOW_ACCUM_GREEN_SIZE 0x0070
248 #define GLUT_WINDOW_ACCUM_BLUE_SIZE 0x0071
249 #define GLUT_WINDOW_ACCUM_ALPHA_SIZE 0x0072
250 #define GLUT_WINDOW_DOUBLEBUFFER 0x0073
251 #define GLUT_WINDOW_RGBA 0x0074
252 #define GLUT_WINDOW_PARENT 0x0075
253 #define GLUT_WINDOW_NUM_CHILDREN 0x0076
254 #define GLUT_WINDOW_COLORMAP_SIZE 0x0077
255 #define GLUT_WINDOW_NUM_SAMPLES 0x0078
256 #define GLUT_WINDOW_STEREO 0x0079
257 #define GLUT_WINDOW_CURSOR 0x007A
259 #define GLUT_SCREEN_WIDTH 0x00C8
260 #define GLUT_SCREEN_HEIGHT 0x00C9
261 #define GLUT_SCREEN_WIDTH_MM 0x00CA
262 #define GLUT_SCREEN_HEIGHT_MM 0x00CB
263 #define GLUT_MENU_NUM_ITEMS 0x012C
264 #define GLUT_DISPLAY_MODE_POSSIBLE 0x0190
265 #define GLUT_INIT_WINDOW_X 0x01F4
266 #define GLUT_INIT_WINDOW_Y 0x01F5
267 #define GLUT_INIT_WINDOW_WIDTH 0x01F6
268 #define GLUT_INIT_WINDOW_HEIGHT 0x01F7
269 #define GLUT_INIT_DISPLAY_MODE 0x01F8
270 #define GLUT_ELAPSED_TIME 0x02BC
271 #define GLUT_WINDOW_FORMAT_ID 0x007B
272 #define GLUT_INIT_STATE 0x007C
277 #define GLUT_HAS_KEYBOARD 0x0258
278 #define GLUT_HAS_MOUSE 0x0259
279 #define GLUT_HAS_SPACEBALL 0x025A
280 #define GLUT_HAS_DIAL_AND_BUTTON_BOX 0x025B
281 #define GLUT_HAS_TABLET 0x025C
282 #define GLUT_NUM_MOUSE_BUTTONS 0x025D
283 #define GLUT_NUM_SPACEBALL_BUTTONS 0x025E
284 #define GLUT_NUM_BUTTON_BOX_BUTTONS 0x025F
285 #define GLUT_NUM_DIALS 0x0260
286 #define GLUT_NUM_TABLET_BUTTONS 0x0261
287 #define GLUT_DEVICE_IGNORE_KEY_REPEAT 0x0262
288 #define GLUT_DEVICE_KEY_REPEAT 0x0263
289 #define GLUT_HAS_JOYSTICK 0x0264
290 #define GLUT_OWNS_JOYSTICK 0x0265
291 #define GLUT_JOYSTICK_BUTTONS 0x0266
292 #define GLUT_JOYSTICK_AXES 0x0267
293 #define GLUT_JOYSTICK_POLL_RATE 0x0268
298 #define GLUT_OVERLAY_POSSIBLE 0x0320
299 #define GLUT_LAYER_IN_USE 0x0321
300 #define GLUT_HAS_OVERLAY 0x0322
301 #define GLUT_TRANSPARENT_INDEX 0x0323
302 #define GLUT_NORMAL_DAMAGED 0x0324
303 #define GLUT_OVERLAY_DAMAGED 0x0325
308 #define GLUT_VIDEO_RESIZE_POSSIBLE 0x0384
309 #define GLUT_VIDEO_RESIZE_IN_USE 0x0385
310 #define GLUT_VIDEO_RESIZE_X_DELTA 0x0386
311 #define GLUT_VIDEO_RESIZE_Y_DELTA 0x0387
312 #define GLUT_VIDEO_RESIZE_WIDTH_DELTA 0x0388
313 #define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 0x0389
314 #define GLUT_VIDEO_RESIZE_X 0x038A
315 #define GLUT_VIDEO_RESIZE_Y 0x038B
316 #define GLUT_VIDEO_RESIZE_WIDTH 0x038C
317 #define GLUT_VIDEO_RESIZE_HEIGHT 0x038D
322 #define GLUT_NORMAL 0x0000
323 #define GLUT_OVERLAY 0x0001
328 #define GLUT_ACTIVE_SHIFT 0x0001
329 #define GLUT_ACTIVE_CTRL 0x0002
330 #define GLUT_ACTIVE_ALT 0x0004
335 #define GLUT_CURSOR_RIGHT_ARROW 0x0000
336 #define GLUT_CURSOR_LEFT_ARROW 0x0001
337 #define GLUT_CURSOR_INFO 0x0002
338 #define GLUT_CURSOR_DESTROY 0x0003
339 #define GLUT_CURSOR_HELP 0x0004
340 #define GLUT_CURSOR_CYCLE 0x0005
341 #define GLUT_CURSOR_SPRAY 0x0006
342 #define GLUT_CURSOR_WAIT 0x0007
343 #define GLUT_CURSOR_TEXT 0x0008
344 #define GLUT_CURSOR_CROSSHAIR 0x0009
345 #define GLUT_CURSOR_UP_DOWN 0x000A
346 #define GLUT_CURSOR_LEFT_RIGHT 0x000B
347 #define GLUT_CURSOR_TOP_SIDE 0x000C
348 #define GLUT_CURSOR_BOTTOM_SIDE 0x000D
349 #define GLUT_CURSOR_LEFT_SIDE 0x000E
350 #define GLUT_CURSOR_RIGHT_SIDE 0x000F
351 #define GLUT_CURSOR_TOP_LEFT_CORNER 0x0010
352 #define GLUT_CURSOR_TOP_RIGHT_CORNER 0x0011
353 #define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 0x0012
354 #define GLUT_CURSOR_BOTTOM_LEFT_CORNER 0x0013
355 #define GLUT_CURSOR_INHERIT 0x0064
356 #define GLUT_CURSOR_NONE 0x0065
357 #define GLUT_CURSOR_FULL_CROSSHAIR 0x0066
362 #define GLUT_RED 0x0000
363 #define GLUT_GREEN 0x0001
364 #define GLUT_BLUE 0x0002
369 #define GLUT_KEY_REPEAT_OFF 0x0000
370 #define GLUT_KEY_REPEAT_ON 0x0001
371 #define GLUT_KEY_REPEAT_DEFAULT 0x0002
373 #define GLUT_JOYSTICK_BUTTON_A 0x0001
374 #define GLUT_JOYSTICK_BUTTON_B 0x0002
375 #define GLUT_JOYSTICK_BUTTON_C 0x0004
376 #define GLUT_JOYSTICK_BUTTON_D 0x0008
381 #define GLUT_GAME_MODE_ACTIVE 0x0000
382 #define GLUT_GAME_MODE_POSSIBLE 0x0001
383 #define GLUT_GAME_MODE_WIDTH 0x0002
384 #define GLUT_GAME_MODE_HEIGHT 0x0003
385 #define GLUT_GAME_MODE_PIXEL_DEPTH 0x0004
386 #define GLUT_GAME_MODE_REFRESH_RATE 0x0005
387 #define GLUT_GAME_MODE_DISPLAY_CHANGED 0x0006