glut.h   glut.h 
skipping to change at line 17 skipping to change at line 17
provided without guarantee or warrantee expressed or implied. This provided without guarantee or warrantee expressed or implied. This
program is -not- in the public domain. */ program is -not- in the public domain. */
#include <GL/gl.h> #include <GL/gl.h>
#include <GL/glu.h> #include <GL/glu.h>
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* /**
* GLUT API revision history: GLUT API revision history:
*
* GLUT_API_VERSION is updated to reflect incompatible GLUT GLUT_API_VERSION is updated to reflect incompatible GLUT
* API changes (interface changes, semantic changes, deletions, API changes (interface changes, semantic changes, deletions,
* or additions). or additions).
*
* GLUT_API_VERSION=1 First public release of GLUT. 11/29/94 GLUT_API_VERSION=1 First public release of GLUT. 11/29/94
*
* GLUT_API_VERSION=2 Added support for OpenGL/GLX multisampling, GLUT_API_VERSION=2 Added support for OpenGL/GLX multisampling,
* extension. Supports new input devices like tablet, dial and button extension. Supports new input devices like tablet, dial and button
* box, and Spaceball. Easy to query OpenGL extensions. box, and Spaceball. Easy to query OpenGL extensions.
*
* GLUT_API_VERSION=3 glutMenuStatus added. GLUT_API_VERSION=3 glutMenuStatus added.
*
*/ **/
#ifndef GLUT_API_VERSION /* allow this to be overriden */ #ifndef GLUT_API_VERSION /* allow this to be overriden */
#define GLUT_API_VERSION 4 /* VERSION 4 API NOT FINALIZED */ #define GLUT_API_VERSION 4 /* VERSION 4 API NOT FINALIZED */
#endif #endif
/* /**
* GLUT implementation revision history: GLUT implementation revision history:
*
* GLUT_XLIB_IMPLEMENTATION is updated to reflect both GLUT GLUT_XLIB_IMPLEMENTATION is updated to reflect both GLUT
* API revisions and implementation revisions (ie, bug fixes). API revisions and implementation revisions (ie, bug fixes).
*
* GLUT_XLIB_IMPLEMENTATION=1 mjk's first public release of GLUT_XLIB_IMPLEMENTATION=1 mjk's first public release of
* GLUT Xlib-based implementation. 11/29/94 GLUT Xlib-based implementation. 11/29/94
*
* GLUT_XLIB_IMPLEMENTATION=2 mjk's second public release of GLUT_XLIB_IMPLEMENTATION=2 mjk's second public release of
* GLUT Xlib-based implementation providing GLUT version 2 GLUT Xlib-based implementation providing GLUT version 2
* interfaces. interfaces.
*
* GLUT_XLIB_IMPLEMENTATION=3 mjk's GLUT 2.2 images. 4/17/95 GLUT_XLIB_IMPLEMENTATION=3 mjk's GLUT 2.2 images. 4/17/95
*
* GLUT_XLIB_IMPLEMENTATION=4 mjk's GLUT 2.3 images. 6/?/95 GLUT_XLIB_IMPLEMENTATION=4 mjk's GLUT 2.3 images. 6/?/95
*
* GLUT_XLIB_IMPLEMENTATION=5 mjk's GLUT 3.0 images. 10/?/95 GLUT_XLIB_IMPLEMENTATION=5 mjk's GLUT 3.0 images. 10/?/95
*
* GLUT_XLIB_IMPLEMENTATION=7 mjk's GLUT 3.1+ with glutWarpPoitner. 7/24/ GLUT_XLIB_IMPLEMENTATION=7 mjk's GLUT 3.1+ with glutWarpPoitner. 7/24/96
96
*/ GLUT_XLIB_IMPLEMENTATION=8 mjk's GLUT 3.1+ with glutWarpPoitner
#ifndef GLUT_XLIB_IMPLEMENTATION /* allow this to be overriden */ and video resize. 1/3/97
**/
#ifndef GLUT_XLIB_IMPLEMENTATION /* Allow this to be overriden. */
#define GLUT_XLIB_IMPLEMENTATION 7 #define GLUT_XLIB_IMPLEMENTATION 7
#endif #endif
/* display mode bit masks */ /* Display mode bit masks. */
#define GLUT_RGB 0 #define GLUT_RGB 0
#define GLUT_RGBA GLUT_RGB #define GLUT_RGBA GLUT_RGB
#define GLUT_INDEX 1 #define GLUT_INDEX 1
#define GLUT_SINGLE 0 #define GLUT_SINGLE 0
#define GLUT_DOUBLE 2 #define GLUT_DOUBLE 2
#define GLUT_ACCUM 4 #define GLUT_ACCUM 4
#define GLUT_ALPHA 8 #define GLUT_ALPHA 8
#define GLUT_DEPTH 16 #define GLUT_DEPTH 16
#define GLUT_STENCIL 32 #define GLUT_STENCIL 32
#if (GLUT_API_VERSION >= 2) #if (GLUT_API_VERSION >= 2)
#define GLUT_MULTISAMPLE 128 #define GLUT_MULTISAMPLE 128
#define GLUT_STEREO 256 #define GLUT_STEREO 256
#endif #endif
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
#define GLUT_LUMINANCE 512 #define GLUT_LUMINANCE 512
#endif #endif
/* mouse buttons */ /* Mouse buttons. */
#define GLUT_LEFT_BUTTON 0 #define GLUT_LEFT_BUTTON 0
#define GLUT_MIDDLE_BUTTON 1 #define GLUT_MIDDLE_BUTTON 1
#define GLUT_RIGHT_BUTTON 2 #define GLUT_RIGHT_BUTTON 2
/* mouse button callback state */ /* Mouse button callback state. */
#define GLUT_DOWN 0 #define GLUT_DOWN 0
#define GLUT_UP 1 #define GLUT_UP 1
#if (GLUT_API_VERSION >= 2) #if (GLUT_API_VERSION >= 2)
/* function keys */ /* function keys */
#define GLUT_KEY_F1 1 #define GLUT_KEY_F1 1
#define GLUT_KEY_F2 2 #define GLUT_KEY_F2 2
#define GLUT_KEY_F3 3 #define GLUT_KEY_F3 3
#define GLUT_KEY_F4 4 #define GLUT_KEY_F4 4
#define GLUT_KEY_F5 5 #define GLUT_KEY_F5 5
skipping to change at line 115 skipping to change at line 118
#define GLUT_KEY_UP 101 #define GLUT_KEY_UP 101
#define GLUT_KEY_RIGHT 102 #define GLUT_KEY_RIGHT 102
#define GLUT_KEY_DOWN 103 #define GLUT_KEY_DOWN 103
#define GLUT_KEY_PAGE_UP 104 #define GLUT_KEY_PAGE_UP 104
#define GLUT_KEY_PAGE_DOWN 105 #define GLUT_KEY_PAGE_DOWN 105
#define GLUT_KEY_HOME 106 #define GLUT_KEY_HOME 106
#define GLUT_KEY_END 107 #define GLUT_KEY_END 107
#define GLUT_KEY_INSERT 108 #define GLUT_KEY_INSERT 108
#endif #endif
/* entry/exit callback state */ /* Entry/exit callback state. */
#define GLUT_LEFT 0 #define GLUT_LEFT 0
#define GLUT_ENTERED 1 #define GLUT_ENTERED 1
/* menu usage callback state */ /* Menu usage callback state. */
#define GLUT_MENU_NOT_IN_USE 0 #define GLUT_MENU_NOT_IN_USE 0
#define GLUT_MENU_IN_USE 1 #define GLUT_MENU_IN_USE 1
/* visibility callback state */ /* Visibility callback state. */
#define GLUT_NOT_VISIBLE 0 #define GLUT_NOT_VISIBLE 0
#define GLUT_VISIBLE 1 #define GLUT_VISIBLE 1
/* color index component selection values */ /* Window status callback state. */
#define GLUT_HIDDEN 0
#define GLUT_FULLY_RETAINED 1
#define GLUT_PARTIALLY_RETAINED 2
#define GLUT_FULLY_COVERED 3
/* Color index component selection values. */
#define GLUT_RED 0 #define GLUT_RED 0
#define GLUT_GREEN 1 #define GLUT_GREEN 1
#define GLUT_BLUE 2 #define GLUT_BLUE 2
/* layers for use */ /* Layers for use. */
#define GLUT_NORMAL 0 #define GLUT_NORMAL 0
#define GLUT_OVERLAY 1 #define GLUT_OVERLAY 1
/* stroke font opaque addresses (use constants instead in source code) */ /* Stroke font opaque addresses (use constants instead in source code). */
extern void *glutStrokeRoman; extern void *glutStrokeRoman;
extern void *glutStrokeMonoRoman; extern void *glutStrokeMonoRoman;
/* stroke font constants (use these in GLUT program) */ /* Stroke font constants (use these in GLUT program). */
#define GLUT_STROKE_ROMAN (&glutStrokeRoman) #define GLUT_STROKE_ROMAN (&glutStrokeRoman)
#define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman) #define GLUT_STROKE_MONO_ROMAN (&glutStrokeMonoRoman)
/* bitmap font opaque addresses (use constants instead in source code) */ /* Bitmap font opaque addresses (use constants instead in source code). */
extern void *glutBitmap9By15; extern void *glutBitmap9By15;
extern void *glutBitmap8By13; extern void *glutBitmap8By13;
extern void *glutBitmapTimesRoman10; extern void *glutBitmapTimesRoman10;
extern void *glutBitmapTimesRoman24; extern void *glutBitmapTimesRoman24;
extern void *glutBitmapHelvetica10; extern void *glutBitmapHelvetica10;
extern void *glutBitmapHelvetica12; extern void *glutBitmapHelvetica12;
extern void *glutBitmapHelvetica18; extern void *glutBitmapHelvetica18;
/* bitmap font constants (use these in GLUT program) */ /* Bitmap font constants (use these in GLUT program). */
#define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15) #define GLUT_BITMAP_9_BY_15 (&glutBitmap9By15)
#define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13) #define GLUT_BITMAP_8_BY_13 (&glutBitmap8By13)
#define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10) #define GLUT_BITMAP_TIMES_ROMAN_10 (&glutBitmapTimesRoman10)
#define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24) #define GLUT_BITMAP_TIMES_ROMAN_24 (&glutBitmapTimesRoman24)
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
#define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10) #define GLUT_BITMAP_HELVETICA_10 (&glutBitmapHelvetica10)
#define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12) #define GLUT_BITMAP_HELVETICA_12 (&glutBitmapHelvetica12)
#define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18) #define GLUT_BITMAP_HELVETICA_18 (&glutBitmapHelvetica18)
#endif #endif
/* glutGet parameters */ /* glutGet parameters. */
#define GLUT_WINDOW_X 100 #define GLUT_WINDOW_X 100
#define GLUT_WINDOW_Y 101 #define GLUT_WINDOW_Y 101
#define GLUT_WINDOW_WIDTH 102 #define GLUT_WINDOW_WIDTH 102
#define GLUT_WINDOW_HEIGHT 103 #define GLUT_WINDOW_HEIGHT 103
#define GLUT_WINDOW_BUFFER_SIZE 104 #define GLUT_WINDOW_BUFFER_SIZE 104
#define GLUT_WINDOW_STENCIL_SIZE 105 #define GLUT_WINDOW_STENCIL_SIZE 105
#define GLUT_WINDOW_DEPTH_SIZE 106 #define GLUT_WINDOW_DEPTH_SIZE 106
#define GLUT_WINDOW_RED_SIZE 107 #define GLUT_WINDOW_RED_SIZE 107
#define GLUT_WINDOW_GREEN_SIZE 108 #define GLUT_WINDOW_GREEN_SIZE 108
#define GLUT_WINDOW_BLUE_SIZE 109 #define GLUT_WINDOW_BLUE_SIZE 109
skipping to change at line 208 skipping to change at line 217
#define GLUT_INIT_WINDOW_X 500 #define GLUT_INIT_WINDOW_X 500
#define GLUT_INIT_WINDOW_Y 501 #define GLUT_INIT_WINDOW_Y 501
#define GLUT_INIT_WINDOW_WIDTH 502 #define GLUT_INIT_WINDOW_WIDTH 502
#define GLUT_INIT_WINDOW_HEIGHT 503 #define GLUT_INIT_WINDOW_HEIGHT 503
#define GLUT_INIT_DISPLAY_MODE 504 #define GLUT_INIT_DISPLAY_MODE 504
#if (GLUT_API_VERSION >= 2) #if (GLUT_API_VERSION >= 2)
#define GLUT_ELAPSED_TIME 700 #define GLUT_ELAPSED_TIME 700
#endif #endif
#if (GLUT_API_VERSION >= 2) #if (GLUT_API_VERSION >= 2)
/* glutDeviceGet parameters */ /* glutDeviceGet parameters. */
#define GLUT_HAS_KEYBOARD 600 #define GLUT_HAS_KEYBOARD 600
#define GLUT_HAS_MOUSE 601 #define GLUT_HAS_MOUSE 601
#define GLUT_HAS_SPACEBALL 602 #define GLUT_HAS_SPACEBALL 602
#define GLUT_HAS_DIAL_AND_BUTTON_BOX 603 #define GLUT_HAS_DIAL_AND_BUTTON_BOX 603
#define GLUT_HAS_TABLET 604 #define GLUT_HAS_TABLET 604
#define GLUT_NUM_MOUSE_BUTTONS 605 #define GLUT_NUM_MOUSE_BUTTONS 605
#define GLUT_NUM_SPACEBALL_BUTTONS 606 #define GLUT_NUM_SPACEBALL_BUTTONS 606
#define GLUT_NUM_BUTTON_BOX_BUTTONS 607 #define GLUT_NUM_BUTTON_BOX_BUTTONS 607
#define GLUT_NUM_DIALS 608 #define GLUT_NUM_DIALS 608
#define GLUT_NUM_TABLET_BUTTONS 609 #define GLUT_NUM_TABLET_BUTTONS 609
#endif #endif
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
/* glutLayerGet parameters */ /* glutLayerGet parameters. */
#define GLUT_OVERLAY_POSSIBLE 800 #define GLUT_OVERLAY_POSSIBLE 800
#define GLUT_LAYER_IN_USE 801 #define GLUT_LAYER_IN_USE 801
#define GLUT_HAS_OVERLAY 802 #define GLUT_HAS_OVERLAY 802
#define GLUT_TRANSPARENT_INDEX 803 #define GLUT_TRANSPARENT_INDEX 803
#define GLUT_NORMAL_DAMAGED 804 #define GLUT_NORMAL_DAMAGED 804
#define GLUT_OVERLAY_DAMAGED 805 #define GLUT_OVERLAY_DAMAGED 805
/* glutUseLayer parameters */ #if (GLUT_API_VERSION >= 4)
/* glutVideoResizeGet parameters. */
#define GLUT_VIDEO_RESIZE_POSSIBLE 900
#define GLUT_VIDEO_RESIZE_IN_USE 901
#define GLUT_VIDEO_RESIZE_X_DELTA 902
#define GLUT_VIDEO_RESIZE_Y_DELTA 903
#define GLUT_VIDEO_RESIZE_WIDTH_DELTA 904
#define GLUT_VIDEO_RESIZE_HEIGHT_DELTA 905
#define GLUT_VIDEO_RESIZE_X 906
#define GLUT_VIDEO_RESIZE_Y 907
#define GLUT_VIDEO_RESIZE_WIDTH 908
#define GLUT_VIDEO_RESIZE_HEIGHT 909
#endif
/* glutUseLayer parameters. */
#define GLUT_NORMAL 0 #define GLUT_NORMAL 0
#define GLUT_OVERLAY 1 #define GLUT_OVERLAY 1
/* glutGetModifiers return mask */ /* glutGetModifiers return mask. */
#define GLUT_ACTIVE_SHIFT 1 #define GLUT_ACTIVE_SHIFT 1
#define GLUT_ACTIVE_CTRL 2 #define GLUT_ACTIVE_CTRL 2
#define GLUT_ACTIVE_ALT 4 #define GLUT_ACTIVE_ALT 4
/* glutSetCursor parameters */ /* glutSetCursor parameters. */
/* Basic arrows */ /* Basic arrows. */
#define GLUT_CURSOR_RIGHT_ARROW 0 #define GLUT_CURSOR_RIGHT_ARROW 0
#define GLUT_CURSOR_LEFT_ARROW 1 #define GLUT_CURSOR_LEFT_ARROW 1
/* Symbolic cursor shapees */ /* Symbolic cursor shapes. */
#define GLUT_CURSOR_INFO 2 #define GLUT_CURSOR_INFO 2
#define GLUT_CURSOR_DESTROY 3 #define GLUT_CURSOR_DESTROY 3
#define GLUT_CURSOR_HELP 4 #define GLUT_CURSOR_HELP 4
#define GLUT_CURSOR_CYCLE 5 #define GLUT_CURSOR_CYCLE 5
#define GLUT_CURSOR_SPRAY 6 #define GLUT_CURSOR_SPRAY 6
#define GLUT_CURSOR_WAIT 7 #define GLUT_CURSOR_WAIT 7
#define GLUT_CURSOR_TEXT 8 #define GLUT_CURSOR_TEXT 8
#define GLUT_CURSOR_CROSSHAIR 9 #define GLUT_CURSOR_CROSSHAIR 9
/* Directional cursors */ /* Directional cursors. */
#define GLUT_CURSOR_UP_DOWN 10 #define GLUT_CURSOR_UP_DOWN 10
#define GLUT_CURSOR_LEFT_RIGHT 11 #define GLUT_CURSOR_LEFT_RIGHT 11
/* Sizing cursors */ /* Sizing cursors. */
#define GLUT_CURSOR_TOP_SIDE 12 #define GLUT_CURSOR_TOP_SIDE 12
#define GLUT_CURSOR_BOTTOM_SIDE 13 #define GLUT_CURSOR_BOTTOM_SIDE 13
#define GLUT_CURSOR_LEFT_SIDE 14 #define GLUT_CURSOR_LEFT_SIDE 14
#define GLUT_CURSOR_RIGHT_SIDE 15 #define GLUT_CURSOR_RIGHT_SIDE 15
#define GLUT_CURSOR_TOP_LEFT_CORNER 16 #define GLUT_CURSOR_TOP_LEFT_CORNER 16
#define GLUT_CURSOR_TOP_RIGHT_CORNER 17 #define GLUT_CURSOR_TOP_RIGHT_CORNER 17
#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18 #define GLUT_CURSOR_BOTTOM_RIGHT_CORNER 18
#define GLUT_CURSOR_BOTTOM_LEFT_CORNER 19 #define GLUT_CURSOR_BOTTOM_LEFT_CORNER 19
/* Inherit from parent window */ /* Inherit from parent window. */
#define GLUT_CURSOR_INHERIT 100 #define GLUT_CURSOR_INHERIT 100
/* Blank cursor */ /* Blank cursor. */
#define GLUT_CURSOR_NONE 101 #define GLUT_CURSOR_NONE 101
/* Fullscreen crosshair (if available) */ /* Fullscreen crosshair (if available). */
#define GLUT_CURSOR_FULL_CROSSHAIR 102 #define GLUT_CURSOR_FULL_CROSSHAIR 102
#endif #endif
/* GLUT initialization sub-API */ /* GLUT initialization sub-API. */
extern void glutInit(int *argcp, char **argv); extern void glutInit(int *argcp, char **argv);
extern void glutInitDisplayMode(unsigned int mode); extern void glutInitDisplayMode(unsigned int mode);
extern void glutInitWindowPosition(int x, int y); extern void glutInitWindowPosition(int x, int y);
extern void glutInitWindowSize(int width, int height); extern void glutInitWindowSize(int width, int height);
extern void glutMainLoop(void); extern void glutMainLoop(void);
/* GLUT window sub-api */ /* GLUT window sub-API. */
extern int glutCreateWindow(char *title); extern int glutCreateWindow(char *title);
extern int glutCreateSubWindow(int win, int x, int y, int width, int height ); extern int glutCreateSubWindow(int win, int x, int y, int width, int height );
extern void glutDestroyWindow(int win); extern void glutDestroyWindow(int win);
extern void glutPostRedisplay(void); extern void glutPostRedisplay(void);
extern void glutSwapBuffers(void); extern void glutSwapBuffers(void);
extern int glutGetWindow(void); extern int glutGetWindow(void);
extern void glutSetWindow(int win); extern void glutSetWindow(int win);
extern void glutSetWindowTitle(char *title); extern void glutSetWindowTitle(char *title);
extern void glutSetIconTitle(char *title); extern void glutSetIconTitle(char *title);
extern void glutPositionWindow(int x, int y); extern void glutPositionWindow(int x, int y);
skipping to change at line 303 skipping to change at line 326
extern void glutIconifyWindow(void); extern void glutIconifyWindow(void);
extern void glutShowWindow(void); extern void glutShowWindow(void);
extern void glutHideWindow(void); extern void glutHideWindow(void);
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
extern void glutFullScreen(void); extern void glutFullScreen(void);
extern void glutSetCursor(int cursor); extern void glutSetCursor(int cursor);
#if (GLUT_API_VERSION >= 4) #if (GLUT_API_VERSION >= 4)
extern void glutWarpPointer(int x, int y); extern void glutWarpPointer(int x, int y);
#endif #endif
/* GLUT overlay sub-API */ /* GLUT overlay sub-API. */
extern void glutEstablishOverlay(void); extern void glutEstablishOverlay(void);
extern void glutRemoveOverlay(void); extern void glutRemoveOverlay(void);
extern void glutUseLayer(GLenum layer); extern void glutUseLayer(GLenum layer);
extern void glutPostOverlayRedisplay(void); extern void glutPostOverlayRedisplay(void);
extern void glutShowOverlay(void); extern void glutShowOverlay(void);
extern void glutHideOverlay(void); extern void glutHideOverlay(void);
#endif #endif
/* GLUT menu sub-API */ /* GLUT menu sub-API. */
extern int glutCreateMenu(void (*)(int)); extern int glutCreateMenu(void (*)(int));
extern void glutDestroyMenu(int menu); extern void glutDestroyMenu(int menu);
extern int glutGetMenu(void); extern int glutGetMenu(void);
extern void glutSetMenu(int menu); extern void glutSetMenu(int menu);
extern void glutAddMenuEntry(char *label, int value); extern void glutAddMenuEntry(char *label, int value);
extern void glutAddSubMenu(char *label, int submenu); extern void glutAddSubMenu(char *label, int submenu);
extern void glutChangeToMenuEntry(int item, char *label, int value); extern void glutChangeToMenuEntry(int item, char *label, int value);
extern void glutChangeToSubMenu(int item, char *label, int submenu); extern void glutChangeToSubMenu(int item, char *label, int submenu);
extern void glutRemoveMenuItem(int item); extern void glutRemoveMenuItem(int item);
extern void glutAttachMenu(int button); extern void glutAttachMenu(int button);
extern void glutDetachMenu(int button); extern void glutDetachMenu(int button);
/* GLUT callback sub-api */ /* GLUT callback sub-API. */
extern void glutDisplayFunc(void (*)(void)); extern void glutDisplayFunc(void (*)(void));
extern void glutReshapeFunc(void (*)(int width, int height)); extern void glutReshapeFunc(void (*)(int width, int height));
extern void glutKeyboardFunc(void (*)(unsigned char key, int x, int y)); extern void glutKeyboardFunc(void (*)(unsigned char key, int x, int y));
extern void glutMouseFunc(void (*)(int button, int state, int x, int y)); extern void glutMouseFunc(void (*)(int button, int state, int x, int y));
extern void glutMotionFunc(void (*)(int x, int y)); extern void glutMotionFunc(void (*)(int x, int y));
extern void glutPassiveMotionFunc(void (*)(int x, int y)); extern void glutPassiveMotionFunc(void (*)(int x, int y));
extern void glutEntryFunc(void (*)(int state)); extern void glutEntryFunc(void (*)(int state));
extern void glutVisibilityFunc(void (*)(int state)); extern void glutVisibilityFunc(void (*)(int state));
extern void glutIdleFunc(void (*)(void)); extern void glutIdleFunc(void (*)(void));
extern void glutTimerFunc(unsigned int millis, void (*)(int value), int val ue); extern void glutTimerFunc(unsigned int millis, void (*)(int value), int val ue);
skipping to change at line 349 skipping to change at line 372
extern void glutSpaceballMotionFunc(void (*)(int x, int y, int z)); extern void glutSpaceballMotionFunc(void (*)(int x, int y, int z));
extern void glutSpaceballRotateFunc(void (*)(int x, int y, int z)); extern void glutSpaceballRotateFunc(void (*)(int x, int y, int z));
extern void glutSpaceballButtonFunc(void (*)(int button, int state)); extern void glutSpaceballButtonFunc(void (*)(int button, int state));
extern void glutButtonBoxFunc(void (*)(int button, int state)); extern void glutButtonBoxFunc(void (*)(int button, int state));
extern void glutDialsFunc(void (*)(int dial, int value)); extern void glutDialsFunc(void (*)(int dial, int value));
extern void glutTabletMotionFunc(void (*)(int x, int y)); extern void glutTabletMotionFunc(void (*)(int x, int y));
extern void glutTabletButtonFunc(void (*)(int button, int state, int x, int y)); extern void glutTabletButtonFunc(void (*)(int button, int state, int x, int y));
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
extern void glutMenuStatusFunc(void (*)(int status, int x, int y)); extern void glutMenuStatusFunc(void (*)(int status, int x, int y));
extern void glutOverlayDisplayFunc(void (*)(void)); extern void glutOverlayDisplayFunc(void (*)(void));
#if (GLUT_API_VERSION >= 4)
extern void glutWindowStatusFunc(void (*)(int state));
#endif
#endif #endif
#endif #endif
/* GLUT color index sub-api */ /* GLUT color index sub-API. */
extern void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue); extern void glutSetColor(int, GLfloat red, GLfloat green, GLfloat blue);
extern GLfloat glutGetColor(int ndx, int component); extern GLfloat glutGetColor(int ndx, int component);
extern void glutCopyColormap(int win); extern void glutCopyColormap(int win);
/* GLUT state retrieval sub-api */ /* GLUT state retrieval sub-API. */
extern int glutGet(GLenum type); extern int glutGet(GLenum type);
extern int glutDeviceGet(GLenum type); extern int glutDeviceGet(GLenum type);
#if (GLUT_API_VERSION >= 2) #if (GLUT_API_VERSION >= 2)
/* GLUT extension support sub-API */ /* GLUT extension support sub-API */
extern int glutExtensionSupported(char *name); extern int glutExtensionSupported(char *name);
#endif #endif
#if (GLUT_API_VERSION >= 3) #if (GLUT_API_VERSION >= 3)
extern int glutGetModifiers(void); extern int glutGetModifiers(void);
extern int glutLayerGet(GLenum type); extern int glutLayerGet(GLenum type);
#endif #endif
skipping to change at line 395 skipping to change at line 421
extern void glutSolidDodecahedron(void); extern void glutSolidDodecahedron(void);
extern void glutWireTeapot(GLdouble size); extern void glutWireTeapot(GLdouble size);
extern void glutSolidTeapot(GLdouble size); extern void glutSolidTeapot(GLdouble size);
extern void glutWireOctahedron(void); extern void glutWireOctahedron(void);
extern void glutSolidOctahedron(void); extern void glutSolidOctahedron(void);
extern void glutWireTetrahedron(void); extern void glutWireTetrahedron(void);
extern void glutSolidTetrahedron(void); extern void glutSolidTetrahedron(void);
extern void glutWireIcosahedron(void); extern void glutWireIcosahedron(void);
extern void glutSolidIcosahedron(void); extern void glutSolidIcosahedron(void);
#if (GLUT_API_VERSION >= 4)
extern int glutVideoResizeGet(GLenum param);
extern void glutSetupVideoResizing(void);
extern void glutStopVideoResizing(void);
extern void glutVideoResize(int x, int y, int width, int height);
extern void glutVideoPan(int x, int y, int width, int height);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
#endif /* __glut_h__ */ #endif /* __glut_h__ */
 End of changes. 35 change blocks. 
71 lines changed or deleted 104 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/