7 * The GLUT-compatible part of the freeglut library include file
9 * Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
10 * Written by Pawel W. Olszta, <olszta@sourceforge.net>
11 * Creation date: Thu Dec 2 1999
13 * Permission is hereby granted, free of charge, to any person obtaining a
14 * copy of this software and associated documentation files (the "Software"),
15 * to deal in the Software without restriction, including without limitation
16 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 * and/or sell copies of the Software, and to permit persons to whom the
18 * Software is furnished to do so, subject to the following conditions:
20 * The above copyright notice and this permission notice shall be included
21 * in all copies or substantial portions of the Software.
23 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
27 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
36 * Under windows, we have to differentiate between static and dynamic libraries
40 # include <windowsx.h>
41 # include <mmsystem.h>
43 #ifdef FREEGLUT_STATIC
47 # pragma comment (lib, "freeglut_static.lib") /* link with Win32 static freeglut lib */
51 # if defined(FREEGLUT_EXPORTS)
52 # define FGAPI __declspec(dllexport)
55 # define FGAPI __declspec(dllimport)
56 # pragma comment (lib, "freeglut.lib") /* link with Win32 freeglut lib */
58 # define FGAPIENTRY __stdcall
62 #pragma comment (lib, "winmm.lib") /* link with Windows MultiMedia lib */
63 #pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */
64 #pragma comment (lib, "glu32.lib") /* link with OpenGL Utility lib */
72 * The freeglut and GLUT API versions
75 #define GLUT_API_VERSION 4
76 #define FREEGLUT_VERSION_2_0 1
79 * Always include OpenGL and GLU headers
85 * GLUT API macro definitions -- the special key codes:
87 #define GLUT_KEY_F1 0x0001
88 #define GLUT_KEY_F2 0x0002
89 #define GLUT_KEY_F3 0x0003
90 #define GLUT_KEY_F4 0x0004
91 #define GLUT_KEY_F5 0x0005
92 #define GLUT_KEY_F6 0x0006
93 #define GLUT_KEY_F7 0x0007
94 #define GLUT_KEY_F8 0x0008
95 #define GLUT_KEY_F9 0x0009
96 #define GLUT_KEY_F10 0x000A
97 #define GLUT_KEY_F11 0x000B
98 #define GLUT_KEY_F12 0x000C
99 #define GLUT_KEY_LEFT 0x0064
100 #define GLUT_KEY_UP 0x0065
101 #define GLUT_KEY_RIGHT 0x0066
102 #define GLUT_KEY_DOWN 0x0067
103 #define GLUT_KEY_PAGE_UP 0x0068
104 #define GLUT_KEY_PAGE_DOWN 0x0069
105 #define GLUT_KEY_HOME 0x006A
106 #define GLUT_KEY_END 0x006B
107 #define GLUT_KEY_INSERT 0x006C
110 * GLUT API macro definitions -- mouse state definitions
112 #define GLUT_LEFT_BUTTON 0x0000
113 #define GLUT_MIDDLE_BUTTON 0x0001
114 #define GLUT_RIGHT_BUTTON 0x0002
115 #define GLUT_DOWN 0x0000
116 #define GLUT_UP 0x0001
117 #define GLUT_LEFT 0x0000
118 #define GLUT_ENTERED 0x0001
121 * GLUT API macro definitions -- the display mode definitions
123 #define GLUT_RGB 0x0000
124 #define GLUT_RGBA 0x0000
125 #define GLUT_INDEX 0x0001
126 #define GLUT_SINGLE 0x0000
127 #define GLUT_DOUBLE 0x0002
128 #define GLUT_ACCUM 0x0004
129 #define GLUT_ALPHA 0x0008
130 #define GLUT_DEPTH 0x0010
131 #define GLUT_STENCIL 0x0020
132 #define GLUT_MULTISAMPLE 0x0080
133 #define GLUT_STEREO 0x0100
134 #define GLUT_LUMINANCE 0x0200
137 * GLUT API macro definitions -- windows and menu related definitions
139 #define GLUT_MENU_NOT_IN_USE 0x0000
140 #define GLUT_MENU_IN_USE 0x0001
141 #define GLUT_NOT_VISIBLE 0x0000
142 #define GLUT_VISIBLE 0x0001
143 #define GLUT_HIDDEN 0x0000
144 #define GLUT_FULLY_RETAINED 0x0001
145 #define GLUT_PARTIALLY_RETAINED 0x0002
146 #define GLUT_FULLY_COVERED 0x0003
149 * GLUT API macro definitions -- fonts definitions
151 * Steve Baker suggested to make it binary compatible with GLUT:
154 # define GLUT_STROKE_ROMAN ((void *)0x0000)
155 # define GLUT_STROKE_MONO_ROMAN ((void *)0x0001)
156 # define GLUT_BITMAP_9_BY_15 ((void *)0x0002)
157 # define GLUT_BITMAP_8_BY_13 ((void *)0x0003)
158 # define GLUT_BITMAP_TIMES_ROMAN_10 ((void *)0x0004)
159 # define GLUT_BITMAP_TIMES_ROMAN_24 ((void *)0x0005)
160 # define GLUT_BITMAP_HELVETICA_10 ((void *)0x0006)
161 # define GLUT_BITMAP_HELVETICA_12 ((void *)0x0007)
162 # define GLUT_BITMAP_HELVETICA_18 ((void *)0x0008)
165 * I don't really know if it's a good idea... But here it goes:
167 extern void* glutStrokeRoman;
168 extern void* glutStrokeMonoRoman;
169 extern void* glutBitmap9By15;
170 extern void* glutBitmap8By13;
171 extern void* glutBitmapTimesRoman10;
172 extern void* glutBitmapTimesRoman24;
173 extern void* glutBitmapHelvetica10;
174 extern void* glutBitmapHelvetica12;
175 extern void* glutBitmapHelvetica18;
178 * Those pointers will be used by following definitions:
180 # define GLUT_STROKE_ROMAN ((void *) &glutStrokeRoman)
181 # define GLUT_STROKE_MONO_ROMAN ((void *) &glutStrokeMonoRoman)
182 # define GLUT_BITMAP_9_BY_15 ((void *) &glutBitmap9By15)
183 # define GLUT_BITMAP_8_BY_13 ((void *) &glutBitmap8By13)
184 # define GLUT_BITMAP_TIMES_ROMAN_10 ((void *) &glutBitmapTimesRoman10)
185 # define GLUT_BITMAP_TIMES_ROMAN_24 ((void *) &glutBitmapTimesRoman24)
186 # define GLUT_BITMAP_HELVETICA_10 ((void *) &glutBitmapHelvetica10)
187 # define GLUT_BITMAP_HELVETICA_12 ((void *) &glutBitmapHelvetica12)
188 # define GLUT_BITMAP_HELVETICA_18 ((void *) &glutBitmapHelvetica18)
192 * GLUT API macro definitions -- the glutGet parameters
194 #define GLUT_WINDOW_X 0x0064
195 #define GLUT_WINDOW_Y 0x0065
196 #define GLUT_WINDOW_WIDTH 0x0066
197 #define GLUT_WINDOW_HEIGHT 0x0067
198 #define GLUT_WINDOW_BUFFER_SIZE 0x0068
199 #define GLUT_WINDOW_STENCIL_SIZE 0x0069
200 #define GLUT_WINDOW_DEPTH_SIZE 0x006A
201 #define GLUT_WINDOW_RED_SIZE 0x006B
202 #define GLUT_WINDOW_GREEN_SIZE 0x006C
203 #define GLUT_WINDOW_BLUE_SIZE 0x006D
204 #define GLUT_WINDOW_ALPHA_SIZE 0x006E
205 #define GLUT_WINDOW_ACCUM_RED_SIZE 0x006F
206 #define GLUT_WINDOW_ACCUM_GREEN_SIZE 0x0070
207 #define GLUT_WINDOW_ACCUM_BLUE_SIZE 0x0071
208 #define GLUT_WINDOW_ACCUM_ALPHA_SIZE 0x0072
209 #define GLUT_WINDOW_DOUBLEBUFFER 0x0073
210 #define GLUT_WINDOW_RGBA 0x0074
211 #define GLUT_WINDOW_PARENT 0x0075
212 #define GLUT_WINDOW_NUM_CHILDREN 0x0076
213 #define GLUT_WINDOW_COLORMAP_SIZE 0x0077
214 #define GLUT_WINDOW_NUM_SAMPLES 0x0078
215 #define GLUT_WINDOW_STEREO 0x0079
216 #define GLUT_WINDOW_CURSOR 0x007A
218 #define GLUT_SCREEN_WIDTH 0x00C8
219 #define GLUT_SCREEN_HEIGHT 0x00C9
220 #define GLUT_SCREEN_WIDTH_MM 0x00CA
221 #define GLUT_SCREEN_HEIGHT_MM 0x00CB
222 #define GLUT_MENU_NUM_ITEMS 0x012C
223 #define GLUT_DISPLAY_MODE_POSSIBLE 0x0190
224 #define GLUT_INIT_WINDOW_X 0x01F4
225 #define GLUT_INIT_WINDOW_Y 0x01F5
226 #define GLUT_INIT_WINDOW_WIDTH 0x01F6
227 #define GLUT_INIT_WINDOW_HEIGHT 0x01F7
228 #define GLUT_INIT_DISPLAY_MODE 0x01F8
229 #define GLUT_ELAPSED_TIME 0x02BC
230 #define GLUT_WINDOW_FORMAT_ID 0x007B
231 #define GLUT_INIT_STATE 0x007C
234 * GLUT API macro definitions -- the glutDeviceGet parameters
236 #define GLUT_HAS_KEYBOARD 0x0258
237 #define GLUT_HAS_MOUSE 0x0259
238 #define GLUT_HAS_SPACEBALL 0x025A
239 #define GLUT_HAS_DIAL_AND_BUTTON_BOX 0x025B
240 #define GLUT_HAS_TABLET 0x025C
241 #define GLUT_NUM_MOUSE_BUTTONS 0x025D
242 #define GLUT_NUM_SPACEBALL_BUTTONS 0x025E
243 #define GLUT_NUM_BUTTON_BOX_BUTTONS 0x025F
244 #define GLUT_NUM_DIALS 0x0260
245 #define GLUT_NUM_TABLET_BUTTONS 0x0261
246 #define GLUT_DEVICE_IGNORE_KEY_REPEAT 0x0262
247 #define GLUT_DEVICE_KEY_REPEAT 0x0263
248 #define GLUT_HAS_JOYSTICK 0x0264
249 #define GLUT_OWNS_JOYSTICK 0x0265
250 #define GLUT_JOYSTICK_BUTTONS 0x0266
251 #define GLUT_JOYSTICK_AXES 0x0267
252 #define GLUT_JOYSTICK_POLL_RATE 0x0268
255 * GLUT API macro definitions -- the glutLayerGet parameters
257 #define GLUT_OVERLAY_POSSIBLE 0x0320
258 #define GLUT_LAYER_IN_USE 0x0321
259 #define GLUT_HAS_OVERLAY 0x0322
260 #define GLUT_TRANSPARENT_INDEX 0x0323
261 #define GLUT_NORMAL_DAMAGED 0x0324
262 #define GLUT_OVERLAY_DAMAGED 0x0325
265 * GLUT API macro definitions -- the glutVideoResizeGet parameters
267 #define GLUT_VIDEO_RESIZE_POSSIBLE 0x0384
268 #define GLUT_VIDEO_RESIZE_IN_USE 0x0385
269 #define GLUT_VIDEO_RESIZE_X_DELTA 0x0386
270 #define GLUT_VIDEO_RESIZE_Y_DELTA 0x0387
271 #define GLUT_VIDEO_RESIZE_WIDTH_DELTA 0x0388
272 #define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 0x0389
273 #define GLUT_VIDEO_RESIZE_X 0x038A
274 #define GLUT_VIDEO_RESIZE_Y 0x038B
275 #define GLUT_VIDEO_RESIZE_WIDTH 0x038C
276 #define GLUT_VIDEO_RESIZE_HEIGHT 0x038D
279 * GLUT API macro definitions -- the glutUseLayer parameters
281 #define GLUT_NORMAL 0x0000
282 #define GLUT_OVERLAY 0x0001
285 * GLUT API macro definitions -- the glutGetModifiers parameters
287 #define GLUT_ACTIVE_SHIFT 0x0001
288 #define GLUT_ACTIVE_CTRL 0x0002
289 #define GLUT_ACTIVE_ALT 0x0004
292 * GLUT API macro definitions -- the glutSetCursor parameters
294 #define GLUT_CURSOR_RIGHT_ARROW 0x0000
295 #define GLUT_CURSOR_LEFT_ARROW 0x0001
296 #define GLUT_CURSOR_INFO 0x0002
297 #define GLUT_CURSOR_DESTROY 0x0003
298 #define GLUT_CURSOR_HELP 0x0004
299 #define GLUT_CURSOR_CYCLE 0x0005
300 #define GLUT_CURSOR_SPRAY 0x0006
301 #define GLUT_CURSOR_WAIT 0x0007
302 #define GLUT_CURSOR_TEXT 0x0008
303 #define GLUT_CURSOR_CROSSHAIR 0x0009
304 #define GLUT_CURSOR_UP_DOWN 0x000A
305 #define GLUT_CURSOR_LEFT_RIGHT 0x000B
306 #define GLUT_CURSOR_TOP_SIDE 0x000C
307 #define GLUT_CURSOR_BOTTOM_SIDE 0x000D
308 #define GLUT_CURSOR_LEFT_SIDE 0x000E
309 #define GLUT_CURSOR_RIGHT_SIDE 0x000F
310 #define GLUT_CURSOR_TOP_LEFT_CORNER 0x0010
311 #define GLUT_CURSOR_TOP_RIGHT_CORNER 0x0011
312 #define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 0x0012
313 #define GLUT_CURSOR_BOTTOM_LEFT_CORNER 0x0013
314 #define GLUT_CURSOR_INHERIT 0x0064
315 #define GLUT_CURSOR_NONE 0x0065
316 #define GLUT_CURSOR_FULL_CROSSHAIR 0x0066
319 * GLUT API macro definitions -- RGB color component specification definitions
321 #define GLUT_RED 0x0000
322 #define GLUT_GREEN 0x0001
323 #define GLUT_BLUE 0x0002
326 * GLUT API macro definitions -- additional keyboard and joystick definitions
328 #define GLUT_KEY_REPEAT_OFF 0x0000
329 #define GLUT_KEY_REPEAT_ON 0x0001
330 #define GLUT_KEY_REPEAT_DEFAULT 0x0002
332 #define GLUT_JOYSTICK_BUTTON_A 0x0001
333 #define GLUT_JOYSTICK_BUTTON_B 0x0002
334 #define GLUT_JOYSTICK_BUTTON_C 0x0004
335 #define GLUT_JOYSTICK_BUTTON_D 0x0008
338 * GLUT API macro definitions -- game mode definitions
340 #define GLUT_GAME_MODE_ACTIVE 0x0000
341 #define GLUT_GAME_MODE_POSSIBLE 0x0001
342 #define GLUT_GAME_MODE_WIDTH 0x0002
343 #define GLUT_GAME_MODE_HEIGHT 0x0003
344 #define GLUT_GAME_MODE_PIXEL_DEPTH 0x0004
345 #define GLUT_GAME_MODE_REFRESH_RATE 0x0005
346 #define GLUT_GAME_MODE_DISPLAY_CHANGED 0x0006
349 * Initialization functions, see fglut_init.c
351 FGAPI void FGAPIENTRY glutInit( int* pargc, char** argv );
352 FGAPI void FGAPIENTRY glutInitWindowPosition( int x, int y );
353 FGAPI void FGAPIENTRY glutInitWindowSize( int width, int height );
354 FGAPI void FGAPIENTRY glutInitDisplayMode( unsigned int displayMode );
355 FGAPI void FGAPIENTRY glutInitDisplayString( const char* displayMode );
358 * Process loop function, see freeglut_main.c
360 FGAPI void FGAPIENTRY glutMainLoop( void );
363 * Window management functions, see freeglut_window.c
365 FGAPI int FGAPIENTRY glutCreateWindow( const char* title );
366 FGAPI int FGAPIENTRY glutCreateSubWindow( int window, int x, int y, int width, int height );
367 FGAPI void FGAPIENTRY glutDestroyWindow( int window );
368 FGAPI void FGAPIENTRY glutSetWindow( int window );
369 FGAPI int FGAPIENTRY glutGetWindow( void );
370 FGAPI void FGAPIENTRY glutSetWindowTitle( const char* title );
371 FGAPI void FGAPIENTRY glutSetIconTitle( const char* title );
372 FGAPI void FGAPIENTRY glutReshapeWindow( int width, int height );
373 FGAPI void FGAPIENTRY glutPositionWindow( int x, int y );
374 FGAPI void FGAPIENTRY glutShowWindow( void );
375 FGAPI void FGAPIENTRY glutHideWindow( void );
376 FGAPI void FGAPIENTRY glutIconifyWindow( void );
377 FGAPI void FGAPIENTRY glutPushWindow( void );
378 FGAPI void FGAPIENTRY glutPopWindow( void );
379 FGAPI void FGAPIENTRY glutFullScreen( void );
382 * Display-connected functions, see freeglut_display.c
384 FGAPI void FGAPIENTRY glutPostWindowRedisplay( int window );
385 FGAPI void FGAPIENTRY glutPostRedisplay( void );
386 FGAPI void FGAPIENTRY glutSwapBuffers( void );
389 * Mouse cursor functions, see freeglut_cursor.c
391 FGAPI void FGAPIENTRY glutWarpPointer( int x, int y );
392 FGAPI void FGAPIENTRY glutSetCursor( int cursor );
395 * Overlay stuff, see freeglut_overlay.c
397 FGAPI void FGAPIENTRY glutEstablishOverlay( void );
398 FGAPI void FGAPIENTRY glutRemoveOverlay( void );
399 FGAPI void FGAPIENTRY glutUseLayer( GLenum layer );
400 FGAPI void FGAPIENTRY glutPostOverlayRedisplay( void );
401 FGAPI void FGAPIENTRY glutPostWindowOverlayRedisplay( int window );
402 FGAPI void FGAPIENTRY glutShowOverlay( void );
403 FGAPI void FGAPIENTRY glutHideOverlay( void );
406 * Menu stuff, see freeglut_menu.c
408 FGAPI int FGAPIENTRY glutCreateMenu( void (* callback)( int menu ) );
409 FGAPI void FGAPIENTRY glutDestroyMenu( int menu );
410 FGAPI int FGAPIENTRY glutGetMenu( void );
411 FGAPI void FGAPIENTRY glutSetMenu( int menu );
412 FGAPI void FGAPIENTRY glutAddMenuEntry( const char* label, int value );
413 FGAPI void FGAPIENTRY glutAddSubMenu( const char* label, int subMenu );
414 FGAPI void FGAPIENTRY glutChangeToMenuEntry( int item, const char* label, int value );
415 FGAPI void FGAPIENTRY glutChangeToSubMenu( int item, const char* label, int value );
416 FGAPI void FGAPIENTRY glutRemoveMenuItem( int item );
417 FGAPI void FGAPIENTRY glutAttachMenu( int button );
418 FGAPI void FGAPIENTRY glutDetachMenu( int button );
421 * Global callback functions, see freeglut_callbacks.c
423 FGAPI void FGAPIENTRY glutTimerFunc( unsigned int time, void (* callback)( int ), int value );
424 FGAPI void FGAPIENTRY glutIdleFunc( void (* callback)( void ) );
427 * Window-specific callback functions, see freeglut_callbacks.c
429 FGAPI void FGAPIENTRY glutKeyboardFunc( void (* callback)( unsigned char, int, int ) );
430 FGAPI void FGAPIENTRY glutSpecialFunc( void (* callback)( int, int, int ) );
431 FGAPI void FGAPIENTRY glutReshapeFunc( void (* callback)( int, int ) );
432 FGAPI void FGAPIENTRY glutVisibilityFunc( void (* callback)( int ) );
433 FGAPI void FGAPIENTRY glutDisplayFunc( void (* callback)( void ) );
434 FGAPI void FGAPIENTRY glutMouseFunc( void (* callback)( int, int, int, int ) );
435 FGAPI void FGAPIENTRY glutMotionFunc( void (* callback)( int, int ) );
436 FGAPI void FGAPIENTRY glutPassiveMotionFunc( void (* callback)( int, int ) );
437 FGAPI void FGAPIENTRY glutEntryFunc( void (* callback)( int ) );
439 FGAPI void FGAPIENTRY glutKeyboardUpFunc( void (* callback)( unsigned char, int, int ) );
440 FGAPI void FGAPIENTRY glutSpecialUpFunc( void (* callback)( int, int, int ) );
441 FGAPI void FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval );
442 FGAPI void FGAPIENTRY glutMenuStateFunc( void (* callback)( int ) );
443 FGAPI void FGAPIENTRY glutMenuStatusFunc( void (* callback)( int, int, int ) );
444 FGAPI void FGAPIENTRY glutOverlayDisplayFunc( void (* callback)( void ) );
445 FGAPI void FGAPIENTRY glutWindowStatusFunc( void (* callback)( int ) );
447 FGAPI void FGAPIENTRY glutSpaceballMotionFunc( void (* callback)( int, int, int ) );
448 FGAPI void FGAPIENTRY glutSpaceballRotateFunc( void (* callback)( int, int, int ) );
449 FGAPI void FGAPIENTRY glutSpaceballButtonFunc( void (* callback)( int, int ) );
450 FGAPI void FGAPIENTRY glutButtonBoxFunc( void (* callback)( int, int ) );
451 FGAPI void FGAPIENTRY glutDialsFunc( void (* callback)( int, int ) );
452 FGAPI void FGAPIENTRY glutTabletMotionFunc( void (* callback)( int, int ) );
453 FGAPI void FGAPIENTRY glutTabletButtonFunc( void (* callback)( int, int, int, int ) );
456 * State setting and retrieval functions, see freeglut_state.c
458 FGAPI int FGAPIENTRY glutGet( GLenum query );
459 FGAPI int FGAPIENTRY glutDeviceGet( GLenum query );
460 FGAPI int FGAPIENTRY glutGetModifiers( void );
461 FGAPI int FGAPIENTRY glutLayerGet( GLenum query );
464 * Font stuff, see freeglut_font.c
466 FGAPI void FGAPIENTRY glutBitmapCharacter( void* font, int character );
467 FGAPI int FGAPIENTRY glutBitmapWidth( void* font, int character );
468 FGAPI void FGAPIENTRY glutStrokeCharacter( void* font, int character );
469 FGAPI int FGAPIENTRY glutStrokeWidth( void* font, int character );
470 FGAPI int FGAPIENTRY glutBitmapLength( void* font, const char* string );
471 FGAPI int FGAPIENTRY glutStrokeLength( void* font, const char* string );
474 * Geometry functions, see freeglut_geometry.c
476 FGAPI void FGAPIENTRY glutWireCube( GLdouble size );
477 FGAPI void FGAPIENTRY glutSolidCube( GLdouble size );
478 FGAPI void FGAPIENTRY glutWireSphere( GLdouble radius, GLint slices, GLint stacks );
479 FGAPI void FGAPIENTRY glutSolidSphere( GLdouble radius, GLint slices, GLint stacks );
480 FGAPI void FGAPIENTRY glutWireCone( GLdouble base, GLdouble height, GLint slices, GLint stacks );
481 FGAPI void FGAPIENTRY glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLint stacks );
483 FGAPI void FGAPIENTRY glutWireTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings );
484 FGAPI void FGAPIENTRY glutSolidTorus( GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings );
485 FGAPI void FGAPIENTRY glutWireDodecahedron( void );
486 FGAPI void FGAPIENTRY glutSolidDodecahedron( void );
487 FGAPI void FGAPIENTRY glutWireOctahedron( void );
488 FGAPI void FGAPIENTRY glutSolidOctahedron( void );
489 FGAPI void FGAPIENTRY glutWireTetrahedron( void );
490 FGAPI void FGAPIENTRY glutSolidTetrahedron( void );
491 FGAPI void FGAPIENTRY glutWireIcosahedron( void );
492 FGAPI void FGAPIENTRY glutSolidIcosahedron( void );
495 * Teapot rendering functions, found in freeglut_teapot.c
497 FGAPI void FGAPIENTRY glutWireTeapot( GLdouble size );
498 FGAPI void FGAPIENTRY glutSolidTeapot( GLdouble size );
501 * Game mode functions, see freeglut_gamemode.c
503 FGAPI void FGAPIENTRY glutGameModeString( const char* string );
504 FGAPI int FGAPIENTRY glutEnterGameMode( void );
505 FGAPI void FGAPIENTRY glutLeaveGameMode( void );
506 FGAPI int FGAPIENTRY glutGameModeGet( GLenum query );
509 * Video resize functions, see freeglut_videoresize.c
511 FGAPI int FGAPIENTRY glutVideoResizeGet( GLenum query );
512 FGAPI void FGAPIENTRY glutSetupVideoResizing( void );
513 FGAPI void FGAPIENTRY glutStopVideoResizing( void );
514 FGAPI void FGAPIENTRY glutVideoResize( int x, int y, int width, int height );
515 FGAPI void FGAPIENTRY glutVideoPan( int x, int y, int width, int height );
518 * Colormap functions, see freeglut_misc.c
520 FGAPI void FGAPIENTRY glutSetColor( int color, GLfloat red, GLfloat green, GLfloat blue );
521 FGAPI GLfloat FGAPIENTRY glutGetColor( int color, int component );
522 FGAPI void FGAPIENTRY glutCopyColormap( int window );
525 * Misc keyboard and joystick functions, see freeglut_misc.c
527 FGAPI void FGAPIENTRY glutIgnoreKeyRepeat( int ignore );
528 FGAPI void FGAPIENTRY glutSetKeyRepeat( int repeatMode ); /* DEPRECATED 11/4/02 - Do not use */
529 FGAPI void FGAPIENTRY glutForceJoystickFunc( void );
532 * Misc functions, see freeglut_misc.c
534 FGAPI int FGAPIENTRY glutExtensionSupported( const char* extension );
535 FGAPI void FGAPIENTRY glutReportErrors( void );
541 /*** END OF FILE ***/