Assignments Assignments

glut.h
Go to the documentation of this file.
1#ifndef __glut_h__
2#define __glut_h__
3
4/* Copyright (c) Mark J. Kilgard, 1994, 1995, 1996, 1998. */
5
6/* This program is freely distributable without licensing fees and is
7 provided without guarantee or warrantee expressed or implied. This
8 program is -not- in the public domain. */
9
10#if defined(_WIN32)
11
12/* GLUT 3.7 now tries to avoid including <windows.h>
13 to avoid name space pollution, but Win32's <GL/gl.h>
14 needs APIENTRY and WINGDIAPI defined properly. */
15# if 0
16 /* This would put tons of macros and crap in our clean name space. */
17# define WIN32_LEAN_AND_MEAN
18# include <windows.h>
19# else
20 /* XXX This is from Win32's <windef.h> */
21# ifndef APIENTRY
22# define GLUT_APIENTRY_DEFINED
23# if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) || defined(__BORLANDC__) || defined(__LCC__)
24# define APIENTRY __stdcall
25# else
26# define APIENTRY
27# endif
28# endif
29 /* XXX This is from Win32's <winnt.h> */
30# ifndef CALLBACK
31# if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_ALPHA) || defined(_M_PPC)) && !defined(MIDL_PASS) || defined(__LCC__)
32# define CALLBACK __stdcall
33# else
34# define CALLBACK
35# endif
36# endif
37 /* XXX Hack for lcc compiler. It doesn't support __declspec(dllimport), just __stdcall. */
38# if defined( __LCC__ )
39# undef WINGDIAPI
40# define WINGDIAPI __stdcall
41# else
42 /* XXX This is from Win32's <wingdi.h> and <winnt.h> */
43# ifndef WINGDIAPI
44# define GLUT_WINGDIAPI_DEFINED
45# define WINGDIAPI __declspec(dllimport)
46# endif
47# endif
48 /* XXX This is from Win32's <ctype.h> */
49# ifndef _WCHAR_T_DEFINED
50 typedef unsigned short wchar_t;
51# define _WCHAR_T_DEFINED
52# endif
53# endif
54
55/* To disable automatic library usage for GLUT, define GLUT_NO_LIB_PRAGMA
56 in your compile preprocessor options. */
57# if !defined(GLUT_BUILDING_LIB) && !defined(GLUT_NO_LIB_PRAGMA)
58# pragma comment (lib, "winmm.lib") /* link with Windows MultiMedia lib */
59/* To enable automatic SGI OpenGL for Windows library usage for GLUT,
60 define GLUT_USE_SGI_OPENGL in your compile preprocessor options. */
61# ifdef GLUT_USE_SGI_OPENGL
62# pragma comment (lib, "opengl.lib") /* link with SGI OpenGL for Windows lib */
63# pragma comment (lib, "glu.lib") /* link with SGI OpenGL Utility lib */
64# pragma comment (lib, "glut.lib") /* link with Win32 GLUT for SGI OpenGL lib */
65# else
66# pragma comment (lib, "opengl32.lib") /* link with Microsoft OpenGL lib */
67# pragma comment (lib, "glu32.lib") /* link with Microsoft OpenGL Utility lib */
68# pragma comment (lib, "glut32.lib") /* link with Win32 GLUT lib */
69# endif
70# endif
71
72/* To disable supression of annoying warnings about floats being promoted
73 to doubles, define GLUT_NO_WARNING_DISABLE in your compile preprocessor
74 options. */
75# ifndef GLUT_NO_WARNING_DISABLE
76# pragma warning (disable:4244) /* Disable bogus VC++ 4.2 conversion warnings. */
77# pragma warning (disable:4305) /* VC++ 5.0 version of above warning. */
78# endif
79
80/* Win32 has an annoying issue where there are multiple C run-time
81 libraries (CRTs). If the executable is linked with a different CRT
82 from the GLUT DLL, the GLUT DLL will not share the same CRT static
83 data seen by the executable. In particular, atexit callbacks registered
84 in the executable will not be called if GLUT calls its (different)
85 exit routine). GLUT is typically built with the
86 "/MD" option (the CRT with multithreading DLL support), but the Visual
87 C++ linker default is "/ML" (the single threaded CRT).
88
89 One workaround to this issue is requiring users to always link with
90 the same CRT as GLUT is compiled with. That requires users supply a
91 non-standard option. GLUT 3.7 has its own built-in workaround where
92 the executable's "exit" function pointer is covertly passed to GLUT.
93 GLUT then calls the executable's exit function pointer to ensure that
94 any "atexit" calls registered by the application are called if GLUT
95 needs to exit.
96
97 Note that the __glut*WithExit routines should NEVER be called directly.
98 To avoid the atexit workaround, #define GLUT_DISABLE_ATEXIT_HACK. */
99
100/* XXX This is from Win32's <process.h> */
101# if !defined(_MSC_VER) && !defined(__cdecl)
102 /* Define __cdecl for non-Microsoft compilers. */
103# define __cdecl
104# define GLUT_DEFINED___CDECL
105# endif
106# ifndef _CRTIMP
107# ifdef _NTSDK
108 /* Definition compatible with NT SDK */
109# define _CRTIMP
110# else
111 /* Current definition */
112# ifdef _DLL
113# define _CRTIMP __declspec(dllimport)
114# else
115# define _CRTIMP
116# endif
117# endif
118# define GLUT_DEFINED__CRTIMP
119# endif
120
121/* GLUT API entry point declarations for Win32. */
122# ifdef GLUT_BUILDING_LIB
123# define GLUTAPI __declspec(dllexport)
124# else
125# ifdef _DLL
126# define GLUTAPI __declspec(dllimport)
127# else
128# define GLUTAPI extern
129# endif
130# endif
131
132/* GLUT callback calling convention for Win32. */
133# define GLUTCALLBACK __cdecl
134
135#endif /* _WIN32 */
136
137#include <GL/gl.h>
138#include <GL/glu.h>
139
140#ifdef __cplusplus
141 extern "C" {
142#endif
143
144#if defined(_WIN32)
145# ifndef GLUT_BUILDING_LIB
146#if _MSC_VER == 1400
147 extern _CRTIMP __declspec(noreturn) void __cdecl exit( int _Code);
148#else
149 extern _CRTIMP void __cdecl exit(int);
150#endif
151# endif
152#else
153/* non-Win32 case. */
154/* Define APIENTRY and CALLBACK to nothing if we aren't on Win32. */
155# define APIENTRY
156# define GLUT_APIENTRY_DEFINED
157# define CALLBACK
158/* Define GLUTAPI and GLUTCALLBACK as below if we aren't on Win32. */
159# define GLUTAPI extern
160# define GLUTCALLBACK
161/* Prototype exit for the non-Win32 case (see above). */
162 extern void exit(int);
163#endif
164
186#ifndef GLUT_API_VERSION /* allow this to be overriden */
187#define GLUT_API_VERSION 3
188#endif
189
226#ifndef GLUT_XLIB_IMPLEMENTATION /* Allow this to be overriden. */
227#define GLUT_XLIB_IMPLEMENTATION 15
228#endif
229
230/* Display mode bit masks. */
231#define GLUT_RGB 0
232#define GLUT_RGBA GLUT_RGB
233#define GLUT_INDEX 1
234#define GLUT_SINGLE 0
235#define GLUT_DOUBLE 2
236#define GLUT_ACCUM 4
237#define GLUT_ALPHA 8
238#define GLUT_DEPTH 16
239#define GLUT_STENCIL 32
240#if (GLUT_API_VERSION >= 2)
241#define GLUT_MULTISAMPLE 128
242#define GLUT_STEREO 256
243#endif
244#if (GLUT_API_VERSION >= 3)
245#define GLUT_LUMINANCE 512
246#endif
247
248/* Mouse buttons. */
249#define GLUT_LEFT_BUTTON 0
250#define GLUT_MIDDLE_BUTTON 1
251#define GLUT_RIGHT_BUTTON 2
252
253/* Mouse button state. */
254#define GLUT_DOWN 0
255#define GLUT_UP 1
256
257#if (GLUT_API_VERSION >= 2)
258/* function keys */
259#define GLUT_KEY_F1 1
260#define GLUT_KEY_F2 2
261#define GLUT_KEY_F3 3
262#define GLUT_KEY_F4 4
263#define GLUT_KEY_F5 5
264#define GLUT_KEY_F6 6
265#define GLUT_KEY_F7 7
266#define GLUT_KEY_F8 8
267#define GLUT_KEY_F9 9
268#define GLUT_KEY_F10 10
269#define GLUT_KEY_F11 11
270#define GLUT_KEY_F12 12
271/* directional keys */
272#define GLUT_KEY_LEFT 100
273#define GLUT_KEY_UP 101
274#define GLUT_KEY_RIGHT 102
275#define GLUT_KEY_DOWN 103
276#define GLUT_KEY_PAGE_UP 104
277#define GLUT_KEY_PAGE_DOWN 105
278#define GLUT_KEY_HOME 106
279#define GLUT_KEY_END 107
280#define GLUT_KEY_INSERT 108
281#endif
282
283/* Entry/exit state. */
284#define GLUT_LEFT 0
285#define GLUT_ENTERED 1
286
287/* Menu usage state. */
288#define GLUT_MENU_NOT_IN_USE 0
289#define GLUT_MENU_IN_USE 1
290
291/* Visibility state. */
292#define GLUT_NOT_VISIBLE 0
293#define GLUT_VISIBLE 1
294
295/* Window status state. */
296#define GLUT_HIDDEN 0
297#define GLUT_FULLY_RETAINED 1
298#define GLUT_PARTIALLY_RETAINED 2
299#define GLUT_FULLY_COVERED 3
300
301/* Color index component selection values. */
302#define GLUT_RED 0
303#define GLUT_GREEN 1
304#define GLUT_BLUE 2
305
306#if defined(_WIN32)
307/* Stroke font constants (use these in GLUT program). */
308#define GLUT_STROKE_ROMAN ((void*)0)
309#define GLUT_STROKE_MONO_ROMAN ((void*)1)
310
311/* Bitmap font constants (use these in GLUT program). */
312#define GLUT_BITMAP_9_BY_15 ((void*)2)
313#define GLUT_BITMAP_8_BY_13 ((void*)3)
314#define GLUT_BITMAP_TIMES_ROMAN_10 ((void*)4)
315#define GLUT_BITMAP_TIMES_ROMAN_24 ((void*)5)
316#if (GLUT_API_VERSION >= 3)
317#define GLUT_BITMAP_HELVETICA_10 ((void*)6)
318#define GLUT_BITMAP_HELVETICA_12 ((void*)7)
319#define GLUT_BITMAP_HELVETICA_18 ((void*)8)
320#endif
321#else
322/* Stroke font opaque addresses (use constants instead in source code). */
323 GLUTAPI void *glutStrokeRoman;
324 GLUTAPI void *glutStrokeMonoRoman;
325
326/* Stroke font constants (use these in GLUT program). */
327#define GLUT_STROKE_ROMAN (&glutStrokeRoman)
328#define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
329
330/* Bitmap font opaque addresses (use constants instead in source code). */
331 GLUTAPI void *glutBitmap9By15;
332 GLUTAPI void *glutBitmap8By13;
333 GLUTAPI void *glutBitmapTimesRoman10;
334 GLUTAPI void *glutBitmapTimesRoman24;
335 GLUTAPI void *glutBitmapHelvetica10;
336 GLUTAPI void *glutBitmapHelvetica12;
337 GLUTAPI void *glutBitmapHelvetica18;
338
339/* Bitmap font constants (use these in GLUT program). */
340#define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15)
341#define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13)
342#define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10)
343#define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24)
344#if (GLUT_API_VERSION >= 3)
345#define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10)
346#define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12)
347#define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18)
348#endif
349#endif
350
351/* glutGet parameters. */
352#define GLUT_WINDOW_X ((GLenum) 100)
353#define GLUT_WINDOW_Y ((GLenum) 101)
354#define GLUT_WINDOW_WIDTH ((GLenum) 102)
355#define GLUT_WINDOW_HEIGHT ((GLenum) 103)
356#define GLUT_WINDOW_BUFFER_SIZE ((GLenum) 104)
357#define GLUT_WINDOW_STENCIL_SIZE ((GLenum) 105)
358#define GLUT_WINDOW_DEPTH_SIZE ((GLenum) 106)
359#define GLUT_WINDOW_RED_SIZE ((GLenum) 107)
360#define GLUT_WINDOW_GREEN_SIZE ((GLenum) 108)
361#define GLUT_WINDOW_BLUE_SIZE ((GLenum) 109)
362#define GLUT_WINDOW_ALPHA_SIZE ((GLenum) 110)
363#define GLUT_WINDOW_ACCUM_RED_SIZE ((GLenum) 111)
364#define GLUT_WINDOW_ACCUM_GREEN_SIZE ((GLenum) 112)
365#define GLUT_WINDOW_ACCUM_BLUE_SIZE ((GLenum) 113)
366#define GLUT_WINDOW_ACCUM_ALPHA_SIZE ((GLenum) 114)
367#define GLUT_WINDOW_DOUBLEBUFFER ((GLenum) 115)
368#define GLUT_WINDOW_RGBA ((GLenum) 116)
369#define GLUT_WINDOW_PARENT ((GLenum) 117)
370#define GLUT_WINDOW_NUM_CHILDREN ((GLenum) 118)
371#define GLUT_WINDOW_COLORMAP_SIZE ((GLenum) 119)
372#if (GLUT_API_VERSION >= 2)
373#define GLUT_WINDOW_NUM_SAMPLES ((GLenum) 120)
374#define GLUT_WINDOW_STEREO ((GLenum) 121)
375#endif
376#if (GLUT_API_VERSION >= 3)
377#define GLUT_WINDOW_CURSOR ((GLenum) 122)
378#endif
379#define GLUT_SCREEN_WIDTH ((GLenum) 200)
380#define GLUT_SCREEN_HEIGHT ((GLenum) 201)
381#define GLUT_SCREEN_WIDTH_MM ((GLenum) 202)
382#define GLUT_SCREEN_HEIGHT_MM ((GLenum) 203)
383#define GLUT_MENU_NUM_ITEMS ((GLenum) 300)
384#define GLUT_DISPLAY_MODE_POSSIBLE ((GLenum) 400)
385#define GLUT_INIT_WINDOW_X ((GLenum) 500)
386#define GLUT_INIT_WINDOW_Y ((GLenum) 501)
387#define GLUT_INIT_WINDOW_WIDTH ((GLenum) 502)
388#define GLUT_INIT_WINDOW_HEIGHT ((GLenum) 503)
389#define GLUT_INIT_DISPLAY_MODE ((GLenum) 504)
390#if (GLUT_API_VERSION >= 2)
391#define GLUT_ELAPSED_TIME ((GLenum) 700)
392#endif
393#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
394#define GLUT_WINDOW_FORMAT_ID ((GLenum) 123)
395#endif
396
397#if (GLUT_API_VERSION >= 2)
398/* glutDeviceGet parameters. */
399#define GLUT_HAS_KEYBOARD ((GLenum) 600)
400#define GLUT_HAS_MOUSE ((GLenum) 601)
401#define GLUT_HAS_SPACEBALL ((GLenum) 602)
402#define GLUT_HAS_DIAL_AND_BUTTON_BOX ((GLenum) 603)
403#define GLUT_HAS_TABLET ((GLenum) 604)
404#define GLUT_NUM_MOUSE_BUTTONS ((GLenum) 605)
405#define GLUT_NUM_SPACEBALL_BUTTONS ((GLenum) 606)
406#define GLUT_NUM_BUTTON_BOX_BUTTONS ((GLenum) 607)
407#define GLUT_NUM_DIALS ((GLenum) 608)
408#define GLUT_NUM_TABLET_BUTTONS ((GLenum) 609)
409#endif
410#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
411#define GLUT_DEVICE_IGNORE_KEY_REPEAT ((GLenum) 610)
412#define GLUT_DEVICE_KEY_REPEAT ((GLenum) 611)
413#define GLUT_HAS_JOYSTICK ((GLenum) 612)
414#define GLUT_OWNS_JOYSTICK ((GLenum) 613)
415#define GLUT_JOYSTICK_BUTTONS ((GLenum) 614)
416#define GLUT_JOYSTICK_AXES ((GLenum) 615)
417#define GLUT_JOYSTICK_POLL_RATE ((GLenum) 616)
418#endif
419
420#if (GLUT_API_VERSION >= 3)
421/* glutLayerGet parameters. */
422#define GLUT_OVERLAY_POSSIBLE ((GLenum) 800)
423#define GLUT_LAYER_IN_USE ((GLenum) 801)
424#define GLUT_HAS_OVERLAY ((GLenum) 802)
425#define GLUT_TRANSPARENT_INDEX ((GLenum) 803)
426#define GLUT_NORMAL_DAMAGED ((GLenum) 804)
427#define GLUT_OVERLAY_DAMAGED ((GLenum) 805)
428
429#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
430/* glutVideoResizeGet parameters. */
431#define GLUT_VIDEO_RESIZE_POSSIBLE ((GLenum) 900)
432#define GLUT_VIDEO_RESIZE_IN_USE ((GLenum) 901)
433#define GLUT_VIDEO_RESIZE_X_DELTA ((GLenum) 902)
434#define GLUT_VIDEO_RESIZE_Y_DELTA ((GLenum) 903)
435#define GLUT_VIDEO_RESIZE_WIDTH_DELTA ((GLenum) 904)
436#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA ((GLenum) 905)
437#define GLUT_VIDEO_RESIZE_X ((GLenum) 906)
438#define GLUT_VIDEO_RESIZE_Y ((GLenum) 907)
439#define GLUT_VIDEO_RESIZE_WIDTH ((GLenum) 908)
440#define GLUT_VIDEO_RESIZE_HEIGHT ((GLenum) 909)
441#endif
442
443/* glutUseLayer parameters. */
444#define GLUT_NORMAL ((GLenum) 0)
445#define GLUT_OVERLAY ((GLenum) 1)
446
447/* glutGetModifiers return mask. */
448#define GLUT_ACTIVE_SHIFT 1
449#define GLUT_ACTIVE_CTRL 2
450#define GLUT_ACTIVE_ALT 4
451
452/* glutSetCursor parameters. */
453/* Basic arrows. */
454#define GLUT_CURSOR_RIGHT_ARROW 0
455#define GLUT_CURSOR_LEFT_ARROW 1
456/* Symbolic cursor shapes. */
457#define GLUT_CURSOR_INFO 2
458#define GLUT_CURSOR_DESTROY 3
459#define GLUT_CURSOR_HELP 4
460#define GLUT_CURSOR_CYCLE 5
461#define GLUT_CURSOR_SPRAY 6
462#define GLUT_CURSOR_WAIT 7
463#define GLUT_CURSOR_TEXT 8
464#define GLUT_CURSOR_CROSSHAIR 9
465/* Directional cursors. */
466#define GLUT_CURSOR_UP_DOWN 10
467#define GLUT_CURSOR_LEFT_RIGHT 11
468/* Sizing cursors. */
469#define GLUT_CURSOR_TOP_SIDE 12
470#define GLUT_CURSOR_BOTTOM_SIDE 13
471#define GLUT_CURSOR_LEFT_SIDE 14
472#define GLUT_CURSOR_RIGHT_SIDE 15
473#define GLUT_CURSOR_TOP_LEFT_CORNER 16
474#define GLUT_CURSOR_TOP_RIGHT_CORNER 17
475#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18
476#define GLUT_CURSOR_BOTTOM_LEFT_CORNER 19
477/* Inherit from parent window. */
478#define GLUT_CURSOR_INHERIT 100
479/* Blank cursor. */
480#define GLUT_CURSOR_NONE 101
481/* Fullscreen crosshair (if available). */
482#define GLUT_CURSOR_FULL_CROSSHAIR 102
483#endif
484
485/* GLUT initialization sub-API. */
486 GLUTAPI void APIENTRY glutInit(int *argcp, char **argv);
487#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)
488 GLUTAPI void APIENTRY __glutInitWithExit(int *argcp, char **argv, void (__cdecl *exitfunc)(int));
489#ifndef GLUT_BUILDING_LIB
490 static void APIENTRY glutInit_ATEXIT_HACK(int *argcp, char **argv) { __glutInitWithExit(argcp, argv, exit); }
491#define glutInit glutInit_ATEXIT_HACK
492#endif
493#endif
494 GLUTAPI void APIENTRY glutInitDisplayMode(unsigned int mode);
495#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
496 GLUTAPI void APIENTRY glutInitDisplayString(const char *string);
497#endif
498 GLUTAPI void APIENTRY glutInitWindowPosition(int x, int y);
499 GLUTAPI void APIENTRY glutInitWindowSize(int width, int height);
500 GLUTAPI void APIENTRY glutMainLoop(void);
501
502/* GLUT window sub-API. */
503 GLUTAPI int APIENTRY glutCreateWindow(const char *title);
504#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)
505 GLUTAPI int APIENTRY __glutCreateWindowWithExit(const char *title, void (__cdecl *exitfunc)(int));
506#ifndef GLUT_BUILDING_LIB
507 static int APIENTRY glutCreateWindow_ATEXIT_HACK(const char *title) { return __glutCreateWindowWithExit(title, exit); }
508#define glutCreateWindow glutCreateWindow_ATEXIT_HACK
509#endif
510#endif
511 GLUTAPI int APIENTRY glutCreateSubWindow(int win, int x, int y, int width, int height);
512 GLUTAPI void APIENTRY glutDestroyWindow(int win);
513 GLUTAPI void APIENTRY glutPostRedisplay(void);
514#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)
515 GLUTAPI void APIENTRY glutPostWindowRedisplay(int win);
516#endif
517 GLUTAPI void APIENTRY glutSwapBuffers(void);
518 GLUTAPI int APIENTRY glutGetWindow(void);
519 GLUTAPI void APIENTRY glutSetWindow(int win);
520 GLUTAPI void APIENTRY glutSetWindowTitle(const char *title);
521 GLUTAPI void APIENTRY glutSetIconTitle(const char *title);
522 GLUTAPI void APIENTRY glutPositionWindow(int x, int y);
523 GLUTAPI void APIENTRY glutReshapeWindow(int width, int height);
524 GLUTAPI void APIENTRY glutPopWindow(void);
525 GLUTAPI void APIENTRY glutPushWindow(void);
526 GLUTAPI void APIENTRY glutIconifyWindow(void);
527 GLUTAPI void APIENTRY glutShowWindow(void);
528 GLUTAPI void APIENTRY glutHideWindow(void);
529#if (GLUT_API_VERSION >= 3)
530 GLUTAPI void APIENTRY glutFullScreen(void);
531 GLUTAPI void APIENTRY glutSetCursor(int cursor);
532#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
533 GLUTAPI void APIENTRY glutWarpPointer(int x, int y);
534#endif
535
536/* GLUT overlay sub-API. */
537 GLUTAPI void APIENTRY glutEstablishOverlay(void);
538 GLUTAPI void APIENTRY glutRemoveOverlay(void);
539 GLUTAPI void APIENTRY glutUseLayer(GLenum layer);
540 GLUTAPI void APIENTRY glutPostOverlayRedisplay(void);
541#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 11)
542 GLUTAPI void APIENTRY glutPostWindowOverlayRedisplay(int win);
543#endif
544 GLUTAPI void APIENTRY glutShowOverlay(void);
545 GLUTAPI void APIENTRY glutHideOverlay(void);
546#endif
547
548/* GLUT menu sub-API. */
549 GLUTAPI int APIENTRY glutCreateMenu(void (GLUTCALLBACK *func)(int));
550#if defined(_WIN32) && !defined(GLUT_DISABLE_ATEXIT_HACK)
551 GLUTAPI int APIENTRY __glutCreateMenuWithExit(void (GLUTCALLBACK *func)(int), void (__cdecl *exitfunc)(int));
552#ifndef GLUT_BUILDING_LIB
553 static int APIENTRY glutCreateMenu_ATEXIT_HACK(void (GLUTCALLBACK *func)(int)) { return __glutCreateMenuWithExit(func, exit); }
554#define glutCreateMenu glutCreateMenu_ATEXIT_HACK
555#endif
556#endif
557 GLUTAPI void APIENTRY glutDestroyMenu(int menu);
558 GLUTAPI int APIENTRY glutGetMenu(void);
559 GLUTAPI void APIENTRY glutSetMenu(int menu);
560 GLUTAPI void APIENTRY glutAddMenuEntry(const char *label, int value);
561 GLUTAPI void APIENTRY glutAddSubMenu(const char *label, int submenu);
562 GLUTAPI void APIENTRY glutChangeToMenuEntry(int item, const char *label, int value);
563 GLUTAPI void APIENTRY glutChangeToSubMenu(int item, const char *label, int submenu);
564 GLUTAPI void APIENTRY glutRemoveMenuItem(int item);
565 GLUTAPI void APIENTRY glutAttachMenu(int button);
566 GLUTAPI void APIENTRY glutDetachMenu(int button);
567
568/* GLUT window callback sub-API. */
569 GLUTAPI void APIENTRY glutDisplayFunc(void (GLUTCALLBACK *func)(void));
570 GLUTAPI void APIENTRY glutReshapeFunc(void (GLUTCALLBACK *func)(int width, int height));
571 GLUTAPI void APIENTRY glutKeyboardFunc(void (GLUTCALLBACK *func)(unsigned char key, int x, int y));
572 GLUTAPI void APIENTRY glutMouseFunc(void (GLUTCALLBACK *func)(int button, int state, int x, int y));
573 GLUTAPI void APIENTRY glutMotionFunc(void (GLUTCALLBACK *func)(int x, int y));
574 GLUTAPI void APIENTRY glutPassiveMotionFunc(void (GLUTCALLBACK *func)(int x, int y));
575 GLUTAPI void APIENTRY glutEntryFunc(void (GLUTCALLBACK *func)(int state));
576 GLUTAPI void APIENTRY glutVisibilityFunc(void (GLUTCALLBACK *func)(int state));
577 GLUTAPI void APIENTRY glutIdleFunc(void (GLUTCALLBACK *func)(void));
578 GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK *func)(int value), int value);
579 GLUTAPI void APIENTRY glutMenuStateFunc(void (GLUTCALLBACK *func)(int state));
580#if (GLUT_API_VERSION >= 2)
581 GLUTAPI void APIENTRY glutSpecialFunc(void (GLUTCALLBACK *func)(int key, int x, int y));
582 GLUTAPI void APIENTRY glutSpaceballMotionFunc(void (GLUTCALLBACK *func)(int x, int y, int z));
583 GLUTAPI void APIENTRY glutSpaceballRotateFunc(void (GLUTCALLBACK *func)(int x, int y, int z));
584 GLUTAPI void APIENTRY glutSpaceballButtonFunc(void (GLUTCALLBACK *func)(int button, int state));
585 GLUTAPI void APIENTRY glutButtonBoxFunc(void (GLUTCALLBACK *func)(int button, int state));
586 GLUTAPI void APIENTRY glutDialsFunc(void (GLUTCALLBACK *func)(int dial, int value));
587 GLUTAPI void APIENTRY glutTabletMotionFunc(void (GLUTCALLBACK *func)(int x, int y));
588 GLUTAPI void APIENTRY glutTabletButtonFunc(void (GLUTCALLBACK *func)(int button, int state, int x, int y));
589#if (GLUT_API_VERSION >= 3)
590 GLUTAPI void APIENTRY glutMenuStatusFunc(void (GLUTCALLBACK *func)(int status, int x, int y));
591 GLUTAPI void APIENTRY glutOverlayDisplayFunc(void (GLUTCALLBACK *func)(void));
592#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
593 GLUTAPI void APIENTRY glutWindowStatusFunc(void (GLUTCALLBACK *func)(int state));
594#endif
595#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
596 GLUTAPI void APIENTRY glutKeyboardUpFunc(void (GLUTCALLBACK *func)(unsigned char key, int x, int y));
597 GLUTAPI void APIENTRY glutSpecialUpFunc(void (GLUTCALLBACK *func)(int key, int x, int y));
598 GLUTAPI void APIENTRY glutJoystickFunc(void (GLUTCALLBACK *func)(unsigned int buttonMask, int x, int y, int z), int pollInterval);
599#endif
600#endif
601#endif
602
603/* GLUT color index sub-API. */
604 GLUTAPI void APIENTRY glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);
605 GLUTAPI GLfloat APIENTRY glutGetColor(int ndx, int component);
606 GLUTAPI void APIENTRY glutCopyColormap(int win);
607
608/* GLUT state retrieval sub-API. */
609 GLUTAPI int APIENTRY glutGet(GLenum type);
610 GLUTAPI int APIENTRY glutDeviceGet(GLenum type);
611#if (GLUT_API_VERSION >= 2)
612/* GLUT extension support sub-API */
613 GLUTAPI int APIENTRY glutExtensionSupported(const char *name);
614#endif
615#if (GLUT_API_VERSION >= 3)
616 GLUTAPI int APIENTRY glutGetModifiers(void);
617 GLUTAPI int APIENTRY glutLayerGet(GLenum type);
618#endif
619
620/* GLUT font sub-API */
621 GLUTAPI void APIENTRY glutBitmapCharacter(void *font, int character);
622 GLUTAPI int APIENTRY glutBitmapWidth(void *font, int character);
623 GLUTAPI void APIENTRY glutStrokeCharacter(void *font, int character);
624 GLUTAPI int APIENTRY glutStrokeWidth(void *font, int character);
625#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
626 GLUTAPI int APIENTRY glutBitmapLength(void *font, const unsigned char *string);
627 GLUTAPI int APIENTRY glutStrokeLength(void *font, const unsigned char *string);
628#endif
629
630/* GLUT pre-built models sub-API */
631 GLUTAPI void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks);
632 GLUTAPI void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
633 GLUTAPI void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
634 GLUTAPI void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks);
635 GLUTAPI void APIENTRY glutWireCube(GLdouble size);
636 GLUTAPI void APIENTRY glutSolidCube(GLdouble size);
637 GLUTAPI void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
638 GLUTAPI void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings);
639 GLUTAPI void APIENTRY glutWireDodecahedron(void);
640 GLUTAPI void APIENTRY glutSolidDodecahedron(void);
641 GLUTAPI void APIENTRY glutWireTeapot(GLdouble size);
642 GLUTAPI void APIENTRY glutSolidTeapot(GLdouble size);
643 GLUTAPI void APIENTRY glutWireOctahedron(void);
644 GLUTAPI void APIENTRY glutSolidOctahedron(void);
645 GLUTAPI void APIENTRY glutWireTetrahedron(void);
646 GLUTAPI void APIENTRY glutSolidTetrahedron(void);
647 GLUTAPI void APIENTRY glutWireIcosahedron(void);
648 GLUTAPI void APIENTRY glutSolidIcosahedron(void);
649
650#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 9)
651/* GLUT video resize sub-API. */
652 GLUTAPI int APIENTRY glutVideoResizeGet(GLenum param);
653 GLUTAPI void APIENTRY glutSetupVideoResizing(void);
654 GLUTAPI void APIENTRY glutStopVideoResizing(void);
655 GLUTAPI void APIENTRY glutVideoResize(int x, int y, int width, int height);
656 GLUTAPI void APIENTRY glutVideoPan(int x, int y, int width, int height);
657
658/* GLUT debugging sub-API. */
659 GLUTAPI void APIENTRY glutReportErrors(void);
660#endif
661
662#if (GLUT_API_VERSION >= 4 || GLUT_XLIB_IMPLEMENTATION >= 13)
663/* GLUT device control sub-API. */
664/* glutSetKeyRepeat modes. */
665#define GLUT_KEY_REPEAT_OFF 0
666#define GLUT_KEY_REPEAT_ON 1
667#define GLUT_KEY_REPEAT_DEFAULT 2
668
669/* Joystick button masks. */
670#define GLUT_JOYSTICK_BUTTON_A 1
671#define GLUT_JOYSTICK_BUTTON_B 2
672#define GLUT_JOYSTICK_BUTTON_C 4
673#define GLUT_JOYSTICK_BUTTON_D 8
674
675 GLUTAPI void APIENTRY glutIgnoreKeyRepeat(int ignore);
676 GLUTAPI void APIENTRY glutSetKeyRepeat(int repeatMode);
677 GLUTAPI void APIENTRY glutForceJoystickFunc(void);
678
679/* GLUT game mode sub-API. */
680/* glutGameModeGet. */
681#define GLUT_GAME_MODE_ACTIVE ((GLenum) 0)
682#define GLUT_GAME_MODE_POSSIBLE ((GLenum) 1)
683#define GLUT_GAME_MODE_WIDTH ((GLenum) 2)
684#define GLUT_GAME_MODE_HEIGHT ((GLenum) 3)
685#define GLUT_GAME_MODE_PIXEL_DEPTH ((GLenum) 4)
686#define GLUT_GAME_MODE_REFRESH_RATE ((GLenum) 5)
687#define GLUT_GAME_MODE_DISPLAY_CHANGED ((GLenum) 6)
688
689 GLUTAPI void APIENTRY glutGameModeString(const char *string);
690 GLUTAPI int APIENTRY glutEnterGameMode(void);
691 GLUTAPI void APIENTRY glutLeaveGameMode(void);
692 GLUTAPI int APIENTRY glutGameModeGet(GLenum mode);
693#endif
694
695#ifdef __cplusplus
696}
697
698#endif
699
700#ifdef GLUT_APIENTRY_DEFINED
701# undef GLUT_APIENTRY_DEFINED
702# undef APIENTRY
703#endif
704
705#ifdef GLUT_WINGDIAPI_DEFINED
706# undef GLUT_WINGDIAPI_DEFINED
707# undef WINGDIAPI
708#endif
709
710#ifdef GLUT_DEFINED___CDECL
711# undef GLUT_DEFINED___CDECL
712# undef __cdecl
713#endif
714
715#ifdef GLUT_DEFINED__CRTIMP
716# undef GLUT_DEFINED__CRTIMP
717# undef _CRTIMP
718#endif
719
720#endif /* __glut_h__ */
GLfloat
float GLfloat
Definition glew.h:289
APIENTRY
#define APIENTRY
Definition glew.h:233
GLdouble
double GLdouble
Definition glew.h:291
GLint
int GLint
Definition glew.h:281
GLenum
unsigned int GLenum
Definition glew.h:278
glutBitmapCharacter
GLUTAPI void APIENTRY glutBitmapCharacter(void *font, int character)
glutDisplayFunc
GLUTAPI void APIENTRY glutDisplayFunc(void(GLUTCALLBACK *func)(void))
glutSpaceballRotateFunc
GLUTAPI void APIENTRY glutSpaceballRotateFunc(void(GLUTCALLBACK *func)(int x, int y, int z))
glutStrokeMonoRoman
GLUTAPI void * glutStrokeMonoRoman
Definition glut.h:324
glutDialsFunc
GLUTAPI void APIENTRY glutDialsFunc(void(GLUTCALLBACK *func)(int dial, int value))
glutShowOverlay
GLUTAPI void APIENTRY glutShowOverlay(void)
glutStrokeRoman
GLUTAPI void * glutStrokeRoman
Definition glut.h:323
glutOverlayDisplayFunc
GLUTAPI void APIENTRY glutOverlayDisplayFunc(void(GLUTCALLBACK *func)(void))
glutEnterGameMode
GLUTAPI int APIENTRY glutEnterGameMode(void)
glutGet
GLUTAPI int APIENTRY glutGet(GLenum type)
glutSolidCone
GLUTAPI void APIENTRY glutSolidCone(GLdouble base, GLdouble height, GLint slices, GLint stacks)
GLUTCALLBACK
#define GLUTCALLBACK
Definition glut.h:160
glutEntryFunc
GLUTAPI void APIENTRY glutEntryFunc(void(GLUTCALLBACK *func)(int state))
glutWireIcosahedron
GLUTAPI void APIENTRY glutWireIcosahedron(void)
glutInitDisplayMode
GLUTAPI void APIENTRY glutInitDisplayMode(unsigned int mode)
glutSwapBuffers
GLUTAPI void APIENTRY glutSwapBuffers(void)
glutInit
GLUTAPI void APIENTRY glutInit(int *argcp, char **argv)
glutSolidSphere
GLUTAPI void APIENTRY glutSolidSphere(GLdouble radius, GLint slices, GLint stacks)
glutSpecialFunc
GLUTAPI void APIENTRY glutSpecialFunc(void(GLUTCALLBACK *func)(int key, int x, int y))
glutRemoveOverlay
GLUTAPI void APIENTRY glutRemoveOverlay(void)
glutWireSphere
GLUTAPI void APIENTRY glutWireSphere(GLdouble radius, GLint slices, GLint stacks)
glutWireTeapot
GLUTAPI void APIENTRY glutWireTeapot(GLdouble size)
glutCreateMenu
GLUTAPI int APIENTRY glutCreateMenu(void(GLUTCALLBACK *func)(int))
glutTimerFunc
GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void(GLUTCALLBACK *func)(int value), int value)
glutInitDisplayString
GLUTAPI void APIENTRY glutInitDisplayString(const char *string)
glutMotionFunc
GLUTAPI void APIENTRY glutMotionFunc(void(GLUTCALLBACK *func)(int x, int y))
glutJoystickFunc
GLUTAPI void APIENTRY glutJoystickFunc(void(GLUTCALLBACK *func)(unsigned int buttonMask, int x, int y, int z), int pollInterval)
glutPostRedisplay
GLUTAPI void APIENTRY glutPostRedisplay(void)
glutWireDodecahedron
GLUTAPI void APIENTRY glutWireDodecahedron(void)
glutBitmapWidth
GLUTAPI int APIENTRY glutBitmapWidth(void *font, int character)
glutVideoResizeGet
GLUTAPI int APIENTRY glutVideoResizeGet(GLenum param)
glutVideoPan
GLUTAPI void APIENTRY glutVideoPan(int x, int y, int width, int height)
glutSolidIcosahedron
GLUTAPI void APIENTRY glutSolidIcosahedron(void)
glutKeyboardFunc
GLUTAPI void APIENTRY glutKeyboardFunc(void(GLUTCALLBACK *func)(unsigned char key, int x, int y))
glutIdleFunc
GLUTAPI void APIENTRY glutIdleFunc(void(GLUTCALLBACK *func)(void))
glutForceJoystickFunc
GLUTAPI void APIENTRY glutForceJoystickFunc(void)
glutStrokeWidth
GLUTAPI int APIENTRY glutStrokeWidth(void *font, int character)
glutStrokeLength
GLUTAPI int APIENTRY glutStrokeLength(void *font, const unsigned char *string)
glutCopyColormap
GLUTAPI void APIENTRY glutCopyColormap(int win)
glutSolidOctahedron
GLUTAPI void APIENTRY glutSolidOctahedron(void)
glutSolidTeapot
GLUTAPI void APIENTRY glutSolidTeapot(GLdouble size)
glutSetWindowTitle
GLUTAPI void APIENTRY glutSetWindowTitle(const char *title)
glutSolidTorus
GLUTAPI void APIENTRY glutSolidTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings)
glutPassiveMotionFunc
GLUTAPI void APIENTRY glutPassiveMotionFunc(void(GLUTCALLBACK *func)(int x, int y))
glutIgnoreKeyRepeat
GLUTAPI void APIENTRY glutIgnoreKeyRepeat(int ignore)
glutGameModeGet
GLUTAPI int APIENTRY glutGameModeGet(GLenum mode)
glutMenuStateFunc
GLUTAPI void APIENTRY glutMenuStateFunc(void(GLUTCALLBACK *func)(int state))
glutWireTetrahedron
GLUTAPI void APIENTRY glutWireTetrahedron(void)
glutGetWindow
GLUTAPI int APIENTRY glutGetWindow(void)
glutDestroyWindow
GLUTAPI void APIENTRY glutDestroyWindow(int win)
glutReshapeFunc
GLUTAPI void APIENTRY glutReshapeFunc(void(GLUTCALLBACK *func)(int width, int height))
glutHideWindow
GLUTAPI void APIENTRY glutHideWindow(void)
glutBitmapHelvetica10
GLUTAPI void * glutBitmapHelvetica10
Definition glut.h:335
glutIconifyWindow
GLUTAPI void APIENTRY glutIconifyWindow(void)
glutPostWindowOverlayRedisplay
GLUTAPI void APIENTRY glutPostWindowOverlayRedisplay(int win)
exit
void exit(int)
glutReportErrors
GLUTAPI void APIENTRY glutReportErrors(void)
glutDetachMenu
GLUTAPI void APIENTRY glutDetachMenu(int button)
glutShowWindow
GLUTAPI void APIENTRY glutShowWindow(void)
glutButtonBoxFunc
GLUTAPI void APIENTRY glutButtonBoxFunc(void(GLUTCALLBACK *func)(int button, int state))
glutInitWindowPosition
GLUTAPI void APIENTRY glutInitWindowPosition(int x, int y)
glutStrokeCharacter
GLUTAPI void APIENTRY glutStrokeCharacter(void *font, int character)
glutBitmapTimesRoman10
GLUTAPI void * glutBitmapTimesRoman10
Definition glut.h:333
glutChangeToMenuEntry
GLUTAPI void APIENTRY glutChangeToMenuEntry(int item, const char *label, int value)
glutChangeToSubMenu
GLUTAPI void APIENTRY glutChangeToSubMenu(int item, const char *label, int submenu)
glutFullScreen
GLUTAPI void APIENTRY glutFullScreen(void)
glutLayerGet
GLUTAPI int APIENTRY glutLayerGet(GLenum type)
glutSetIconTitle
GLUTAPI void APIENTRY glutSetIconTitle(const char *title)
glutSpaceballMotionFunc
GLUTAPI void APIENTRY glutSpaceballMotionFunc(void(GLUTCALLBACK *func)(int x, int y, int z))
glutWarpPointer
GLUTAPI void APIENTRY glutWarpPointer(int x, int y)
glutGetColor
GLUTAPI GLfloat APIENTRY glutGetColor(int ndx, int component)
glutBitmap8By13
GLUTAPI void * glutBitmap8By13
Definition glut.h:332
glutSetMenu
GLUTAPI void APIENTRY glutSetMenu(int menu)
glutInitWindowSize
GLUTAPI void APIENTRY glutInitWindowSize(int width, int height)
glutAddSubMenu
GLUTAPI void APIENTRY glutAddSubMenu(const char *label, int submenu)
glutMainLoop
GLUTAPI void APIENTRY glutMainLoop(void)
glutSetColor
GLUTAPI void APIENTRY glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue)
glutSolidDodecahedron
GLUTAPI void APIENTRY glutSolidDodecahedron(void)
glutGetModifiers
GLUTAPI int APIENTRY glutGetModifiers(void)
glutSolidCube
GLUTAPI void APIENTRY glutSolidCube(GLdouble size)
glutWireCone
GLUTAPI void APIENTRY glutWireCone(GLdouble base, GLdouble height, GLint slices, GLint stacks)
glutWindowStatusFunc
GLUTAPI void APIENTRY glutWindowStatusFunc(void(GLUTCALLBACK *func)(int state))
glutMenuStatusFunc
GLUTAPI void APIENTRY glutMenuStatusFunc(void(GLUTCALLBACK *func)(int status, int x, int y))
GLUTAPI
#define GLUTAPI
Definition glut.h:159
glutEstablishOverlay
GLUTAPI void APIENTRY glutEstablishOverlay(void)
glutVisibilityFunc
GLUTAPI void APIENTRY glutVisibilityFunc(void(GLUTCALLBACK *func)(int state))
glutWireOctahedron
GLUTAPI void APIENTRY glutWireOctahedron(void)
glutVideoResize
GLUTAPI void APIENTRY glutVideoResize(int x, int y, int width, int height)
glutStopVideoResizing
GLUTAPI void APIENTRY glutStopVideoResizing(void)
glutGetMenu
GLUTAPI int APIENTRY glutGetMenu(void)
glutWireTorus
GLUTAPI void APIENTRY glutWireTorus(GLdouble innerRadius, GLdouble outerRadius, GLint sides, GLint rings)
glutPopWindow
GLUTAPI void APIENTRY glutPopWindow(void)
glutSetKeyRepeat
GLUTAPI void APIENTRY glutSetKeyRepeat(int repeatMode)
glutPushWindow
GLUTAPI void APIENTRY glutPushWindow(void)
glutExtensionSupported
GLUTAPI int APIENTRY glutExtensionSupported(const char *name)
glutUseLayer
GLUTAPI void APIENTRY glutUseLayer(GLenum layer)
glutDeviceGet
GLUTAPI int APIENTRY glutDeviceGet(GLenum type)
glutCreateSubWindow
GLUTAPI int APIENTRY glutCreateSubWindow(int win, int x, int y, int width, int height)
glutBitmap9By15
GLUTAPI void * glutBitmap9By15
Definition glut.h:331
glutReshapeWindow
GLUTAPI void APIENTRY glutReshapeWindow(int width, int height)
glutDestroyMenu
GLUTAPI void APIENTRY glutDestroyMenu(int menu)
glutAttachMenu
GLUTAPI void APIENTRY glutAttachMenu(int button)
glutTabletButtonFunc
GLUTAPI void APIENTRY glutTabletButtonFunc(void(GLUTCALLBACK *func)(int button, int state, int x, int y))
glutAddMenuEntry
GLUTAPI void APIENTRY glutAddMenuEntry(const char *label, int value)
glutWireCube
GLUTAPI void APIENTRY glutWireCube(GLdouble size)
glutPositionWindow
GLUTAPI void APIENTRY glutPositionWindow(int x, int y)
glutHideOverlay
GLUTAPI void APIENTRY glutHideOverlay(void)
glutSpecialUpFunc
GLUTAPI void APIENTRY glutSpecialUpFunc(void(GLUTCALLBACK *func)(int key, int x, int y))
glutGameModeString
GLUTAPI void APIENTRY glutGameModeString(const char *string)
glutSpaceballButtonFunc
GLUTAPI void APIENTRY glutSpaceballButtonFunc(void(GLUTCALLBACK *func)(int button, int state))
glutSetupVideoResizing
GLUTAPI void APIENTRY glutSetupVideoResizing(void)
glutSetWindow
GLUTAPI void APIENTRY glutSetWindow(int win)
glutPostWindowRedisplay
GLUTAPI void APIENTRY glutPostWindowRedisplay(int win)
glutMouseFunc
GLUTAPI void APIENTRY glutMouseFunc(void(GLUTCALLBACK *func)(int button, int state, int x, int y))
glutBitmapLength
GLUTAPI int APIENTRY glutBitmapLength(void *font, const unsigned char *string)
glutCreateWindow
GLUTAPI int APIENTRY glutCreateWindow(const char *title)
glutBitmapHelvetica12
GLUTAPI void * glutBitmapHelvetica12
Definition glut.h:336
glutKeyboardUpFunc
GLUTAPI void APIENTRY glutKeyboardUpFunc(void(GLUTCALLBACK *func)(unsigned char key, int x, int y))
glutSetCursor
GLUTAPI void APIENTRY glutSetCursor(int cursor)
glutSolidTetrahedron
GLUTAPI void APIENTRY glutSolidTetrahedron(void)
glutBitmapTimesRoman24
GLUTAPI void * glutBitmapTimesRoman24
Definition glut.h:334
glutLeaveGameMode
GLUTAPI void APIENTRY glutLeaveGameMode(void)
glutPostOverlayRedisplay
GLUTAPI void APIENTRY glutPostOverlayRedisplay(void)
glutTabletMotionFunc
GLUTAPI void APIENTRY glutTabletMotionFunc(void(GLUTCALLBACK *func)(int x, int y))
glutRemoveMenuItem
GLUTAPI void APIENTRY glutRemoveMenuItem(int item)
glutBitmapHelvetica18
GLUTAPI void * glutBitmapHelvetica18
Definition glut.h:337