00001 #ifndef __glut_h__
00002 #define __glut_h__
00003
00004
00005
00006
00007
00008
00009
00010 #if defined(_WIN32)
00011
00012
00013
00014
00015 # if 0
00016 # define WIN32_LEAN_AND_MEAN
00017 # include <windows.h>
00018 # else
00019
00020 # ifndef APIENTRY
00021 # define GLUT_APIENTRY_DEFINED
00022 # if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)
00023 # define APIENTRY __stdcall
00024 # else
00025 # define APIENTRY
00026 # endif
00027 # endif
00028
00029 # ifndef CALLBACK
00030 # if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS)
00031 # define CALLBACK __stdcall
00032 # else
00033 # define CALLBACK
00034 # endif
00035 # endif
00036
00037 # ifndef WINGDIAPI
00038 # define GLUT_WINGDIAPI_DEFINED
00039 # define WINGDIAPI __declspec(dllimport)
00040 # endif
00041
00042 # ifndef _WCHAR_T_DEFINED
00043 typedef unsigned short wchar_t;
00044 # define _WCHAR_T_DEFINED
00045 # endif
00046 # endif
00047
00048 #pragma warning (disable:4244)
00049 #pragma warning (disable:4305)
00050
00051 #endif
00052
00053 #include <GL/gl.h>
00054 #include <GL/glu.h>
00055
00056
00057 #if !defined(_WIN32)
00058 #define APIENTRY
00059 #define GLUT_APIENTRY_DEFINED
00060 #define CALLBACK
00061 #endif
00062
00063 #ifdef __cplusplus
00064 extern "C" {
00065 #endif
00066
00088 #ifndef GLUT_API_VERSION
00089 #define GLUT_API_VERSION 3
00090 #endif
00091
00124 #ifndef GLUT_XLIB_IMPLEMENTATION
00125 #define GLUT_XLIB_IMPLEMENTATION 13
00126 #endif
00127
00128
00129 #define GLUT_RGB 0
00130 #define GLUT_RGBA GLUT_RGB
00131 #define GLUT_INDEX 1
00132 #define GLUT_SINGLE 0
00133 #define GLUT_DOUBLE 2
00134 #define GLUT_ACCUM 4
00135 #define GLUT_ALPHA 8
00136 #define GLUT_DEPTH 16
00137 #define GLUT_STENCIL 32
00138 #if (GLUT_API_VERSION >= 2)
00139 #define GLUT_MULTISAMPLE 128
00140 #define GLUT_STEREO 256
00141 #endif
00142 #if (GLUT_API_VERSION >= 3)
00143 #define GLUT_LUMINANCE 512
00144 #endif
00145
00146
00147 #define GLUT_LEFT_BUTTON 0
00148 #define GLUT_MIDDLE_BUTTON 1
00149 #define GLUT_RIGHT_BUTTON 2
00150
00151
00152 #define GLUT_DOWN 0
00153 #define GLUT_UP 1
00154
00155 #if (GLUT_API_VERSION >= 2)
00156
00157 #define GLUT_KEY_F1 1
00158 #define GLUT_KEY_F2 2
00159 #define GLUT_KEY_F3 3
00160 #define GLUT_KEY_F4 4
00161 #define GLUT_KEY_F5 5
00162 #define GLUT_KEY_F6 6
00163 #define GLUT_KEY_F7 7
00164 #define GLUT_KEY_F8 8
00165 #define GLUT_KEY_F9 9
00166 #define GLUT_KEY_F10 10
00167 #define GLUT_KEY_F11 11
00168 #define GLUT_KEY_F12 12
00169
00170 #define GLUT_KEY_LEFT 100
00171 #define GLUT_KEY_UP 101
00172 #define GLUT_KEY_RIGHT 102
00173 #define GLUT_KEY_DOWN 103
00174 #define GLUT_KEY_PAGE_UP 104
00175 #define GLUT_KEY_PAGE_DOWN 105
00176 #define GLUT_KEY_HOME 106
00177 #define GLUT_KEY_END 107
00178 #define GLUT_KEY_INSERT 108
00179 #endif
00180
00181
00182 #define GLUT_LEFT 0
00183 #define GLUT_ENTERED 1
00184
00185
00186 #define GLUT_MENU_NOT_IN_USE 0
00187 #define GLUT_MENU_IN_USE 1
00188
00189
00190 #define GLUT_NOT_VISIBLE 0
00191 #define GLUT_VISIBLE 1
00192
00193
00194 #define GLUT_HIDDEN 0
00195 #define GLUT_FULLY_RETAINED 1
00196 #define GLUT_PARTIALLY_RETAINED 2
00197 #define GLUT_FULLY_COVERED 3
00198
00199
00200 #define GLUT_RED 0
00201 #define GLUT_GREEN 1
00202 #define GLUT_BLUE 2
00203
00204
00205 #define GLUT_NORMAL 0
00206 #define GLUT_OVERLAY 1
00207
00208 #if defined(_WIN32)
00209
00210 #define GLUT_STROKE_ROMAN ((void*)0)
00211 #define GLUT_STROKE_MONO_ROMAN ((void*)1)
00212
00213
00214 #define GLUT_BITMAP_9_BY_15 ((void*)2)
00215 #define GLUT_BITMAP_8_BY_13 ((void*)3)
00216 #define GLUT_BITMAP_TIMES_ROMAN_10 ((void*)4)
00217 #define GLUT_BITMAP_TIMES_ROMAN_24 ((void*)5)
00218 #if (GLUT_API_VERSION >= 3)
00219 #define GLUT_BITMAP_HELVETICA_10 ((void*)6)
00220 #define GLUT_BITMAP_HELVETICA_12 ((void*)7)
00221 #define GLUT_BITMAP_HELVETICA_18 ((void*)8)
00222 #endif
00223 #else
00224
00225 extern void *glutStrokeRoman;
00226 extern void *glutStrokeMonoRoman;
00227
00228
00229 #define GLUT_STROKE_ROMAN (&glutStrokeRoman)
00230 #define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
00231
00232
00233 extern void *glutBitmap9By15;
00234 extern void *glutBitmap8By13;
00235 extern void *glutBitmapTimesRoman10;
00236 extern void *glutBitmapTimesRoman24;
00237 extern void *glutBitmapHelvetica10;
00238 extern void *glutBitmapHelvetica12;
00239 extern void *glutBitmapHelvetica18;
00240
00241
00242 #define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15)
00243 #define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13)
00244 #define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10)
00245 #define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24)
00246 #if (GLUT_API_VERSION >= 3)
00247 #define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10)
00248 #define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12)
00249 #define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18)
00250 #endif
00251 #endif
00252
00253
00254 #define GLUT_WINDOW_X 100
00255 #define GLUT_WINDOW_Y 101
00256 #define GLUT_WINDOW_WIDTH 102
00257 #define GLUT_WINDOW_HEIGHT 103
00258 #define GLUT_WINDOW_BUFFER_SIZE 104
00259 #define GLUT_WINDOW_STENCIL_SIZE 105
00260 #define GLUT_WINDOW_DEPTH_SIZE 106
00261 #define GLUT_WINDOW_RED_SIZE 107
00262 #define GLUT_WINDOW_GREEN_SIZE 108
00263 #define GLUT_WINDOW_BLUE_SIZE 109
00264 #define GLUT_WINDOW_ALPHA_SIZE 110
00265 #define GLUT_WINDOW_ACCUM_RED_SIZE 111
00266 #define GLUT_WINDOW_ACCUM_GREEN_SIZE 112
00267 #define GLUT_WINDOW_ACCUM_BLUE_SIZE 113
00268 #define GLUT_WINDOW_ACCUM_ALPHA_SIZE 114
00269 #define GLUT_WINDOW_DOUBLEBUFFER 115
00270 #define GLUT_WINDOW_RGBA 116
00271 #define GLUT_WINDOW_PARENT 117
00272 #define GLUT_WINDOW_NUM_CHILDREN 118
00273 #define GLUT_WINDOW_COLORMAP_SIZE 119
00274 #if (GLUT_API_VERSION >= 2)
00275 #define GLUT_WINDOW_NUM_SAMPLES 120
00276 #define GLUT_WINDOW_STEREO 121
00277 #endif
00278 #if (GLUT_API_VERSION >= 3)
00279 #define GLUT_WINDOW_CURSOR 122
00280 #endif
00281 #define GLUT_SCREEN_WIDTH 200
00282 #define GLUT_SCREEN_HEIGHT 201
00283 #define GLUT_SCREEN_WIDTH_MM 202
00284 #define GLUT_SCREEN_HEIGHT_MM 203
00285 #define GLUT_MENU_NUM_ITEMS 300
00286 #define GLUT_DISPLAY_MODE_POSSIBLE 400
00287 #define GLUT_INIT_WINDOW_X 500
00288 #define GLUT_INIT_WINDOW_Y 501
00289 #define GLUT_INIT_WINDOW_WIDTH 502
00290 #define GLUT_INIT_WINDOW_HEIGHT 503
00291 #define GLUT_INIT_DISPLAY_MODE 504
00292 #if (GLUT_API_VERSION >= 2)
00293 #define GLUT_ELAPSED_TIME 700
00294 #endif
00295 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
00296 #define GLUT_WINDOW_FORMAT_ID 123
00297 #endif
00298
00299 #if (GLUT_API_VERSION >= 2)
00300
00301 #define GLUT_HAS_KEYBOARD 600
00302 #define GLUT_HAS_MOUSE 601
00303 #define GLUT_HAS_SPACEBALL 602
00304 #define GLUT_HAS_DIAL_AND_BUTTON_BOX 603
00305 #define GLUT_HAS_TABLET 604
00306 #define GLUT_NUM_MOUSE_BUTTONS 605
00307 #define GLUT_NUM_SPACEBALL_BUTTONS 606
00308 #define GLUT_NUM_BUTTON_BOX_BUTTONS 607
00309 #define GLUT_NUM_DIALS 608
00310 #define GLUT_NUM_TABLET_BUTTONS 609
00311 #endif
00312 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
00313 #define GLUT_DEVICE_IGNORE_KEY_REPEAT 610
00314 #define GLUT_DEVICE_KEY_REPEAT 611
00315 #define GLUT_HAS_JOYSTICK 612
00316 #define GLUT_OWNS_JOYSTICK 613
00317 #define GLUT_JOYSTICK_BUTTONS 614
00318 #define GLUT_JOYSTICK_AXES 615
00319 #define GLUT_JOYSTICK_POLL_RATE 616
00320 #endif
00321
00322 #if (GLUT_API_VERSION >= 3)
00323
00324 #define GLUT_OVERLAY_POSSIBLE 800
00325 #define GLUT_LAYER_IN_USE 801
00326 #define GLUT_HAS_OVERLAY 802
00327 #define GLUT_TRANSPARENT_INDEX 803
00328 #define GLUT_NORMAL_DAMAGED 804
00329 #define GLUT_OVERLAY_DAMAGED 805
00330
00331 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00332
00333 #define GLUT_VIDEO_RESIZE_POSSIBLE 900
00334 #define GLUT_VIDEO_RESIZE_IN_USE 901
00335 #define GLUT_VIDEO_RESIZE_X_DELTA 902
00336 #define GLUT_VIDEO_RESIZE_Y_DELTA 903
00337 #define GLUT_VIDEO_RESIZE_WIDTH_DELTA 904
00338 #define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 905
00339 #define GLUT_VIDEO_RESIZE_X 906
00340 #define GLUT_VIDEO_RESIZE_Y 907
00341 #define GLUT_VIDEO_RESIZE_WIDTH 908
00342 #define GLUT_VIDEO_RESIZE_HEIGHT 909
00343 #endif
00344
00345
00346 #define GLUT_NORMAL 0
00347 #define GLUT_OVERLAY 1
00348
00349
00350 #define GLUT_ACTIVE_SHIFT 1
00351 #define GLUT_ACTIVE_CTRL 2
00352 #define GLUT_ACTIVE_ALT 4
00353
00354
00355
00356 #define GLUT_CURSOR_RIGHT_ARROW 0
00357 #define GLUT_CURSOR_LEFT_ARROW 1
00358
00359 #define GLUT_CURSOR_INFO 2
00360 #define GLUT_CURSOR_DESTROY 3
00361 #define GLUT_CURSOR_HELP 4
00362 #define GLUT_CURSOR_CYCLE 5
00363 #define GLUT_CURSOR_SPRAY 6
00364 #define GLUT_CURSOR_WAIT 7
00365 #define GLUT_CURSOR_TEXT 8
00366 #define GLUT_CURSOR_CROSSHAIR 9
00367
00368 #define GLUT_CURSOR_UP_DOWN 10
00369 #define GLUT_CURSOR_LEFT_RIGHT 11
00370
00371 #define GLUT_CURSOR_TOP_SIDE 12
00372 #define GLUT_CURSOR_BOTTOM_SIDE 13
00373 #define GLUT_CURSOR_LEFT_SIDE 14
00374 #define GLUT_CURSOR_RIGHT_SIDE 15
00375 #define GLUT_CURSOR_TOP_LEFT_CORNER 16
00376 #define GLUT_CURSOR_TOP_RIGHT_CORNER 17
00377 #define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18
00378 #define GLUT_CURSOR_BOTTOM_LEFT_CORNER 19
00379
00380 #define GLUT_CURSOR_INHERIT 100
00381
00382 #define GLUT_CURSOR_NONE 101
00383
00384 #define GLUT_CURSOR_FULL_CROSSHAIR 102
00385 #endif
00386
00387
00388 extern void APIENTRY glutInit(int *argcp, char **argv);
00389 extern void APIENTRY glutInitDisplayMode(unsigned int mode);
00390 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00391 extern void APIENTRY glutInitDisplayString(const char *string);
00392 #endif
00393 extern void APIENTRY glutInitWindowPosition(int x, int y);
00394 extern void APIENTRY glutInitWindowSize(int width, int height);
00395 extern void APIENTRY glutMainLoop(void);
00396
00397
00398 extern int APIENTRY glutCreateWindow(const char *title);
00399 extern int APIENTRY glutCreateSubWindow(int win, int x, int y, int width, int height);
00400 extern void APIENTRY glutDestroyWindow(int win);
00401 extern void APIENTRY glutPostRedisplay(void);
00402 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)
00403 extern void APIENTRY glutPostWindowRedisplay(int win);
00404 #endif
00405 extern void APIENTRY glutSwapBuffers(void);
00406 extern int APIENTRY glutGetWindow(void);
00407 extern void APIENTRY glutSetWindow(int win);
00408 extern void APIENTRY glutSetWindowTitle(const char *title);
00409 extern void APIENTRY glutSetIconTitle(const char *title);
00410 extern void APIENTRY glutPositionWindow(int x, int y);
00411 extern void APIENTRY glutReshapeWindow(int width, int height);
00412 extern void APIENTRY glutPopWindow(void);
00413 extern void APIENTRY glutPushWindow(void);
00414 extern void APIENTRY glutIconifyWindow(void);
00415 extern void APIENTRY glutShowWindow(void);
00416 extern void APIENTRY glutHideWindow(void);
00417 #if (GLUT_API_VERSION >= 3)
00418 extern void APIENTRY glutFullScreen(void);
00419 extern void APIENTRY glutSetCursor(int cursor);
00420 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00421 extern void APIENTRY glutWarpPointer(int x, int y);
00422 #endif
00423
00424
00425 extern void APIENTRY glutEstablishOverlay(void);
00426 extern void APIENTRY glutRemoveOverlay(void);
00427 extern void APIENTRY glutUseLayer(GLenum layer);
00428 extern void APIENTRY glutPostOverlayRedisplay(void);
00429 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)
00430 extern void APIENTRY glutPostWindowOverlayRedisplay(int win);
00431 #endif
00432 extern void APIENTRY glutShowOverlay(void);
00433 extern void APIENTRY glutHideOverlay(void);
00434 #endif
00435
00436
00437 extern int APIENTRY glutCreateMenu(void (*)(int));
00438 extern void APIENTRY glutDestroyMenu(int menu);
00439 extern int APIENTRY glutGetMenu(void);
00440 extern void APIENTRY glutSetMenu(int menu);
00441 extern void APIENTRY glutAddMenuEntry(const char *label, int value);
00442 extern void APIENTRY glutAddSubMenu(const char *label, int submenu);
00443 extern void APIENTRY glutChangeToMenuEntry(int item, const char *label, int value);
00444 extern void APIENTRY glutChangeToSubMenu(int item, const char *label, int submenu);
00445 extern void APIENTRY glutRemoveMenuItem(int item);
00446 extern void APIENTRY glutAttachMenu(int button);
00447 extern void APIENTRY glutDetachMenu(int button);
00448
00449
00450 extern void APIENTRY glutDisplayFunc(void (*func)(void));
00451 extern void APIENTRY glutReshapeFunc(void (*func)(int width, int height));
00452 extern void APIENTRY glutKeyboardFunc(void (*func)(unsigned char key, int x, int y));
00453 extern void APIENTRY glutMouseFunc(void (*func)(int button, int state, int x, int y));
00454 extern void APIENTRY glutMotionFunc(void (*func)(int x, int y));
00455 extern void APIENTRY glutPassiveMotionFunc(void (*func)(int x, int y));
00456 extern void APIENTRY glutEntryFunc(void (*func)(int state));
00457 extern void APIENTRY glutVisibilityFunc(void (*func)(int state));
00458 extern void APIENTRY glutIdleFunc(void (*func)(void));
00459 extern void APIENTRY glutTimerFunc(unsigned int millis, void (*func)(int value), int value);
00460 extern void APIENTRY glutMenuStateFunc(void (*func)(int state));
00461 #if (GLUT_API_VERSION >= 2)
00462 extern void APIENTRY glutSpecialFunc(void (*func)(int key, int x, int y));
00463 extern void APIENTRY glutSpaceballMotionFunc(void (*func)(int x, int y, int z));
00464 extern void APIENTRY glutSpaceballRotateFunc(void (*func)(int x, int y, int z));
00465 extern void APIENTRY glutSpaceballButtonFunc(void (*func)(int button, int state));
00466 extern void APIENTRY glutButtonBoxFunc(void (*func)(int button, int state));
00467 extern void APIENTRY glutDialsFunc(void (*func)(int dial, int value));
00468 extern void APIENTRY glutTabletMotionFunc(void (*func)(int x, int y));
00469 extern void APIENTRY glutTabletButtonFunc(void (*func)(int button, int state, int x, int y));
00470 #if (GLUT_API_VERSION >= 3)
00471 extern void APIENTRY glutMenuStatusFunc(void (*func)(int status, int x, int y));
00472 extern void APIENTRY glutOverlayDisplayFunc(void (*func)(void));
00473 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00474 extern void APIENTRY glutWindowStatusFunc(void (*func)(int state));
00475 #endif
00476 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
00477 extern void APIENTRY glutKeyboardUpFunc(void (*func)(unsigned char key, int x, int y));
00478 extern void APIENTRY glutSpecialUpFunc(void (*func)(int key, int x, int y));
00479 extern void APIENTRY glutJoystickFunc(void (*func)(unsigned int buttonMask, int x, int y, int z), int pollInterval);
00480 #endif
00481 #endif
00482 #endif
00483
00484
00485 extern void APIENTRY glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);
00486 extern GLfloat APIENTRY glutGetColor(int ndx, int component);
00487 extern void APIENTRY glutCopyColormap(int win);
00488
00489
00490 extern int APIENTRY glutGet(GLenum type);
00491 extern int APIENTRY glutDeviceGet(GLenum type);
00492 #if (GLUT_API_VERSION >= 2)
00493
00494 extern int APIENTRY glutExtensionSupported(const char *name);
00495 #endif
00496 #if (GLUT_API_VERSION >= 3)
00497 extern int APIENTRY glutGetModifiers(void);
00498 extern int APIENTRY glutLayerGet(GLenum type);
00499 #endif
00500
00501
00502 extern void APIENTRY glutBitmapCharacter(void *font, int character);
00503 extern int APIENTRY glutBitmapWidth(void *font, int character);
00504 extern void APIENTRY glutStrokeCharacter(void *font, int character);
00505 extern int APIENTRY glutStrokeWidth(void *font, int character);
00506 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00507 extern int APIENTRY glutBitmapLength(void *font, const unsigned char *string);
00508 extern int APIENTRY glutStrokeLength(void *font, const unsigned char *string);
00509 #endif
00510
00511
00512 extern void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
00513 extern void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
00514 extern void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
00515 extern void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
00516 extern void APIENTRY glutWireCube(GLdouble size);
00517 extern void APIENTRY glutSolidCube(GLdouble size);
00518 extern void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
00519 extern void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
00520 extern void APIENTRY glutWireDodecahedron(void);
00521 extern void APIENTRY glutSolidDodecahedron(void);
00522 extern void APIENTRY glutWireTeapot(GLdouble size);
00523 extern void APIENTRY glutSolidTeapot(GLdouble size);
00524 extern void APIENTRY glutWireOctahedron(void);
00525 extern void APIENTRY glutSolidOctahedron(void);
00526 extern void APIENTRY glutWireTetrahedron(void);
00527 extern void APIENTRY glutSolidTetrahedron(void);
00528 extern void APIENTRY glutWireIcosahedron(void);
00529 extern void APIENTRY glutSolidIcosahedron(void);
00530
00531 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
00532
00533 extern int APIENTRY glutVideoResizeGet(GLenum param);
00534 extern void APIENTRY glutSetupVideoResizing(void);
00535 extern void APIENTRY glutStopVideoResizing(void);
00536 extern void APIENTRY glutVideoResize(int x, int y, int width, int height);
00537 extern void APIENTRY glutVideoPan(int x, int y, int width, int height);
00538
00539
00540 extern void APIENTRY glutReportErrors(void);
00541 #endif
00542
00543 #if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
00544
00545
00546 #define GLUT_KEY_REPEAT_OFF 0
00547 #define GLUT_KEY_REPEAT_ON 1
00548 #define GLUT_KEY_REPEAT_DEFAULT 2
00549
00550
00551 #define GLUT_JOYSTICK_BUTTON_A 1
00552 #define GLUT_JOYSTICK_BUTTON_B 2
00553 #define GLUT_JOYSTICK_BUTTON_C 4
00554 #define GLUT_JOYSTICK_BUTTON_D 8
00555
00556 extern void APIENTRY glutIgnoreKeyRepeat(int ignore);
00557 extern void APIENTRY glutSetKeyRepeat(int repeatMode);
00558 extern void APIENTRY glutForceJoystickFunc(void);
00559
00560
00561
00562 #define GLUT_GAME_MODE_ACTIVE 0
00563 #define GLUT_GAME_MODE_POSSIBLE 1
00564 #define GLUT_GAME_MODE_WIDTH 2
00565 #define GLUT_GAME_MODE_HEIGHT 3
00566 #define GLUT_GAME_MODE_PIXEL_DEPTH 4
00567 #define GLUT_GAME_MODE_REFRESH_RATE 5
00568 #define GLUT_GAME_MODE_DISPLAY_CHANGED 6
00569
00570 extern void APIENTRY glutGameModeString(const char *string);
00571 extern int APIENTRY glutEnterGameMode(void);
00572 extern void APIENTRY glutLeaveGameMode(void);
00573 extern int APIENTRY glutGameModeGet(GLenum mode);
00574 #endif
00575
00576 #ifdef __cplusplus
00577 }
00578
00579 #endif
00580
00581 #ifdef GLUT_APIENTRY_DEFINED
00582 # undef GLUT_APIENTRY_DEFINED
00583 # undef APIENTRY
00584 #endif
00585
00586 #ifdef GLUT_WINGDIAPI_DEFINED
00587 # undef GLUT_WINGDIAPI_DEFINED
00588 # undef WINGDIAPI
00589 #endif
00590
00591 #endif