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