Main Page | File List | Globals

glutes.h File Reference

Go to the source code of this file.

Defines

#define GLUTAPI
#define APIENTRY
#define GLUTCALLBACK   __cdecl
#define GERBERA_ES_1_1
#define GLUT_API_VERSION   3
#define GLUTES_API_VERSION   1
#define GLUT_RGB   0
#define GLUT_RGBA   GLUT_RGB
#define GLUT_INDEX   1
#define GLUT_SINGLE   0
#define GLUT_DOUBLE   2
#define GLUT_ACCUM   4
#define GLUT_ALPHA   8
#define GLUT_DEPTH   16
#define GLUT_STENCIL   32
#define GLUT_MULTISAMPLE   128
#define GLUT_STEREO   256
#define GLUT_LUMINANCE   512
#define GLUT_LEFT_BUTTON   0
#define GLUT_MIDDLE_BUTTON   1
#define GLUT_RIGHT_BUTTON   2
#define GLUT_DOWN   0
#define GLUT_UP   1
#define GLUT_KEY_F1   1
#define GLUT_KEY_F2   2
#define GLUT_KEY_F3   3
#define GLUT_KEY_F4   4
#define GLUT_KEY_F5   5
#define GLUT_KEY_F6   6
#define GLUT_KEY_F7   7
#define GLUT_KEY_F8   8
#define GLUT_KEY_F9   9
#define GLUT_KEY_F10   10
#define GLUT_KEY_F11   11
#define GLUT_KEY_F12   12
#define GLUT_KEY_LEFT   100
#define GLUT_KEY_UP   101
#define GLUT_KEY_RIGHT   102
#define GLUT_KEY_DOWN   103
#define GLUT_KEY_PAGE_UP   104
#define GLUT_KEY_PAGE_DOWN   105
#define GLUT_KEY_HOME   106
#define GLUT_KEY_END   107
#define GLUT_KEY_INSERT   108
#define GLUT_LEFT   0
#define GLUT_ENTERED   1
#define GLUT_MENU_NOT_IN_USE   0
#define GLUT_MENU_IN_USE   1
#define GLUT_NOT_VISIBLE   0
#define GLUT_VISIBLE   1
#define GLUT_HIDDEN   0
#define GLUT_FULLY_RETAINED   1
#define GLUT_PARTIALLY_RETAINED   2
#define GLUT_FULLY_COVERED   3
#define GLUT_RED   0
#define GLUT_GREEN   1
#define GLUT_BLUE   2
#define GLUT_STROKE_ROMAN   ((void*)0)
#define GLUT_STROKE_MONO_ROMAN   ((void*)1)
#define GLUT_BITMAP_9_BY_15   ((void*)2)
#define GLUT_BITMAP_8_BY_13   ((void*)3)
#define GLUT_BITMAP_TIMES_ROMAN_10   ((void*)4)
#define GLUT_BITMAP_TIMES_ROMAN_24   ((void*)5)
#define GLUT_BITMAP_HELVETICA_10   ((void*)6)
#define GLUT_BITMAP_HELVETICA_12   ((void*)7)
#define GLUT_BITMAP_HELVETICA_18   ((void*)8)
#define GLUT_BITMAP_4_BY_6   ((void*)10)
#define GLUT_BITMAP_6_BY_8   ((void*)11)
#define GLUT_BITMAP_8_BY_14   ((void*)12)
#define GLUT_WINDOW_X   ((GLenum) 100)
#define GLUT_WINDOW_Y   ((GLenum) 101)
#define GLUT_WINDOW_WIDTH   ((GLenum) 102)
#define GLUT_WINDOW_HEIGHT   ((GLenum) 103)
#define GLUT_WINDOW_BUFFER_SIZE   ((GLenum) 104)
#define GLUT_WINDOW_STENCIL_SIZE   ((GLenum) 105)
#define GLUT_WINDOW_DEPTH_SIZE   ((GLenum) 106)
#define GLUT_WINDOW_RED_SIZE   ((GLenum) 107)
#define GLUT_WINDOW_GREEN_SIZE   ((GLenum) 108)
#define GLUT_WINDOW_BLUE_SIZE   ((GLenum) 109)
#define GLUT_WINDOW_ALPHA_SIZE   ((GLenum) 110)
#define GLUT_WINDOW_ACCUM_RED_SIZE   ((GLenum) 111)
#define GLUT_WINDOW_ACCUM_GREEN_SIZE   ((GLenum) 112)
#define GLUT_WINDOW_ACCUM_BLUE_SIZE   ((GLenum) 113)
#define GLUT_WINDOW_ACCUM_ALPHA_SIZE   ((GLenum) 114)
#define GLUT_WINDOW_DOUBLEBUFFER   ((GLenum) 115)
#define GLUT_WINDOW_RGBA   ((GLenum) 116)
#define GLUT_WINDOW_PARENT   ((GLenum) 117)
#define GLUT_WINDOW_NUM_CHILDREN   ((GLenum) 118)
#define GLUT_WINDOW_COLORMAP_SIZE   ((GLenum) 119)
#define GLUT_WINDOW_NUM_SAMPLES   ((GLenum) 120)
#define GLUT_WINDOW_STEREO   ((GLenum) 121)
#define GLUT_WINDOW_CURSOR   ((GLenum) 122)
#define GLUT_SCREEN_WIDTH   ((GLenum) 200)
#define GLUT_SCREEN_HEIGHT   ((GLenum) 201)
#define GLUT_SCREEN_WIDTH_MM   ((GLenum) 202)
#define GLUT_SCREEN_HEIGHT_MM   ((GLenum) 203)
#define GLUT_MENU_NUM_ITEMS   ((GLenum) 300)
#define GLUT_DISPLAY_MODE_POSSIBLE   ((GLenum) 400)
#define GLUT_INIT_WINDOW_X   ((GLenum) 500)
#define GLUT_INIT_WINDOW_Y   ((GLenum) 501)
#define GLUT_INIT_WINDOW_WIDTH   ((GLenum) 502)
#define GLUT_INIT_WINDOW_HEIGHT   ((GLenum) 503)
#define GLUT_INIT_DISPLAY_MODE   ((GLenum) 504)
#define GLUT_ELAPSED_TIME   ((GLenum) 700)
#define GLUT_WINDOW_FORMAT_ID   ((GLenum) 123)
#define GLUT_HAS_KEYBOARD   ((GLenum) 600)
#define GLUT_HAS_MOUSE   ((GLenum) 601)
#define GLUT_HAS_SPACEBALL   ((GLenum) 602)
#define GLUT_HAS_DIAL_AND_BUTTON_BOX   ((GLenum) 603)
#define GLUT_HAS_TABLET   ((GLenum) 604)
#define GLUT_NUM_MOUSE_BUTTONS   ((GLenum) 605)
#define GLUT_NUM_SPACEBALL_BUTTONS   ((GLenum) 606)
#define GLUT_NUM_BUTTON_BOX_BUTTONS   ((GLenum) 607)
#define GLUT_NUM_DIALS   ((GLenum) 608)
#define GLUT_NUM_TABLET_BUTTONS   ((GLenum) 609)
#define GLUT_NORMAL   ((GLenum) 0)
#define GLUT_OVERLAY   ((GLenum) 1)
#define GLUT_ACTIVE_SHIFT   1
#define GLUT_ACTIVE_CTRL   2
#define GLUT_ACTIVE_ALT   4
#define GLUT_CURSOR_RIGHT_ARROW   0
#define GLUT_CURSOR_LEFT_ARROW   1
#define GLUT_CURSOR_INFO   2
#define GLUT_CURSOR_DESTROY   3
#define GLUT_CURSOR_HELP   4
#define GLUT_CURSOR_CYCLE   5
#define GLUT_CURSOR_SPRAY   6
#define GLUT_CURSOR_WAIT   7
#define GLUT_CURSOR_TEXT   8
#define GLUT_CURSOR_CROSSHAIR   9
#define GLUT_CURSOR_UP_DOWN   10
#define GLUT_CURSOR_LEFT_RIGHT   11
#define GLUT_CURSOR_TOP_SIDE   12
#define GLUT_CURSOR_BOTTOM_SIDE   13
#define GLUT_CURSOR_LEFT_SIDE   14
#define GLUT_CURSOR_RIGHT_SIDE   15
#define GLUT_CURSOR_TOP_LEFT_CORNER   16
#define GLUT_CURSOR_TOP_RIGHT_CORNER   17
#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER   18
#define GLUT_CURSOR_BOTTOM_LEFT_CORNER   19
#define GLUT_CURSOR_INHERIT   100
#define GLUT_CURSOR_NONE   101
#define GLUT_CURSOR_FULL_CROSSHAIR   102
#define glutBitmapCharacter   glutBitmapCharacterPoints
#define glutBitmapString   glutBitmapStringPoints
#define GLUT_KEY_REPEAT_OFF   0
#define GLUT_KEY_REPEAT_ON   1
#define GLUT_KEY_REPEAT_DEFAULT   2
#define GLUT_GAME_MODE_ACTIVE   ((GLenum) 0)
#define GLUT_GAME_MODE_POSSIBLE   ((GLenum) 1)
#define GLUT_GAME_MODE_WIDTH   ((GLenum) 2)
#define GLUT_GAME_MODE_HEIGHT   ((GLenum) 3)
#define GLUT_GAME_MODE_PIXEL_DEPTH   ((GLenum) 4)
#define GLUT_GAME_MODE_REFRESH_RATE   ((GLenum) 5)
#define GLUT_GAME_MODE_DISPLAY_CHANGED   ((GLenum) 6)

Functions

GLUTAPI void APIENTRY glutInit (int *argcp, char **argv)
 Initialize GLUT ressources.

GLUTAPI void APIENTRY glutDestroy (void)
 Destroys all GLUT windows and ressources.

GLUTAPI void APIENTRY glutInitDisplayMode (unsigned int mode)
 ....

GLUTAPI void APIENTRY glutInitWindowPosition (int x, int y)
 Initializes GLUT ressources.

GLUTAPI void APIENTRY glutInitWindowSize (int width, int height)
 Initializes the default window size.

GLUTAPI void APIENTRY glutMainLoop (void)
 Starts the main GLUT Visualization-Interaction loop.

GLUTAPI int APIENTRY glutCreateWindow (const char *title)
 Creates a window associated to a OpenGL|ES low-level surface.

GLUTAPI void APIENTRY glutDestroyWindow (int win)
 Initializes GLUT ressources.

GLUTAPI void APIENTRY glutPostRedisplay (void)
 Requests the current window to be refreshed.

GLUTAPI void APIENTRY glutPostWindowRedisplay (int win)
 Request a specific window to be refreshed.

GLUTAPI void APIENTRY glutSwapBuffers (void)
 Requests the current window's buffer to be swapped.

GLUTAPI int APIENTRY glutGetWindow (void)
 Gets the current window's handle.

GLUTAPI void APIENTRY glutSetWindow (int win)
 Changes the current window.

GLUTAPI void APIENTRY glutSetWindowTitle (const char *title)
 Changes the current window's title.

GLUTAPI void APIENTRY glutSetIconTitle (const char *title)
GLUTAPI void APIENTRY glutPositionWindow (int x, int y)
GLUTAPI void APIENTRY glutReshapeWindow (int width, int height)
 Reshapes the current window.

GLUTAPI void APIENTRY glutPopWindow (void)
 Change the stacking order of the current window relative to its siblings.

GLUTAPI void APIENTRY glutPushWindow (void)
 Change the stacking order of the current window relative to its siblings.

GLUTAPI void APIENTRY glutIconifyWindow (void)
 Minimize the current window.

GLUTAPI void APIENTRY glutShowWindow (void)
 Show the current window.

GLUTAPI void APIENTRY glutHideWindow (void)
 Hide the current window.

GLUTAPI void APIENTRY glutFullScreen (void)
 Set the current window in fullscreen.

GLUTAPI void APIENTRY glutSetCursor (int cursor)
GLUTAPI int APIENTRY glutCreateMenu (void(GLUTCALLBACK *func)(int))
 Create a menu.

GLUTAPI void APIENTRY glutDestroyMenu (int menu)
 Destroys a menu.

GLUTAPI int APIENTRY glutGetMenu (void)
 Gets the current menu identifier.

GLUTAPI void APIENTRY glutSetMenu (int menu)
 Sets the current menu identifier.

GLUTAPI void APIENTRY glutAddMenuEntry (const char *label, int value)
 Adds a menu entry to the bottom of the current menu.

GLUTAPI void APIENTRY glutAddSubMenu (const char *label, int submenu)
 Adds a submenu to the current menu.

GLUTAPI void APIENTRY glutChangeToMenuEntry (int item, const char *label, int value)
 Changes the specified menu item in the current menu to a menu entry.

GLUTAPI void APIENTRY glutChangeToSubMenu (int item, const char *label, int submenu)
 Changes the specified menu item in the current menu to a submenu.

GLUTAPI void APIENTRY glutRemoveMenuItem (int item)
 Removes a menu item in the current menu.

GLUTAPI void APIENTRY glutAttachMenu (int button)
 Attaches a mouse button for the current window to the identifier of the current menu.

GLUTAPI void APIENTRY glutDetachMenu (int button)
 Detaches a mouse button for the current window to the identifier of the current menu.

GLUTAPI void APIENTRY glutDisplayFunc (void(GLUTCALLBACK *func)(void))
 Sets the display callback for the current window.

GLUTAPI void APIENTRY glutReshapeFunc (void(GLUTCALLBACK *func)(int width, int height))
 Sets the reshape callback for the current window.

GLUTAPI void APIENTRY glutKeyboardFunc (void(GLUTCALLBACK *func)(unsigned char key, int x, int y))
 Sets the keyboard callback for the current window.

GLUTAPI void APIENTRY glutKeyboardUpFunc (void(GLUTCALLBACK *func)(unsigned char key, int x, int y))
 Sets the keyboard callback up (key release) for the current window.

GLUTAPI void APIENTRY glutSpecialFunc (void(GLUTCALLBACK *func)(int key, int x, int y))
 Sets the special keyboard callback for the current window.

GLUTAPI void APIENTRY glutSpecialUpFunc (void(GLUTCALLBACK *func)(int key, int x, int y))
 Sets the special keyboard up (key release) callback for the current window.

GLUTAPI void APIENTRY glutMouseFunc (void(GLUTCALLBACK *func)(int button, int state, int x, int y))
 Sets the mouse callback for the current window.

GLUTAPI void APIENTRY glutMotionFunc (void(GLUTCALLBACK *func)(int x, int y))
 Sets the mouse motion callback for the current window.

GLUTAPI void APIENTRY glutPassiveMotionFunc (void(GLUTCALLBACK *func)(int x, int y))
 Sets the mouse passive motion callback for the current window.

GLUTAPI void APIENTRY glutEntryFunc (void(GLUTCALLBACK *func)(int state))
 Sets the mouse enter/leave callback for the current window.

GLUTAPI void APIENTRY glutVisibilityFunc (void(GLUTCALLBACK *func)(int state))
 Sets the visibility callback for the current window.

GLUTAPI void APIENTRY glutIdleFunc (void(GLUTCALLBACK *func)(void))
 Sets the global idle callback.

GLUTAPI void APIENTRY glutTimerFunc (unsigned int millis, void(GLUTCALLBACK *func)(int value), int value)
 Registers a timer callback to be triggered in a specified number of milliseconds.

GLUTAPI void APIENTRY glutMenuStateFunc (void(GLUTCALLBACK *func)(int state))
 Sets the global menu stae callback.

GLUTAPI void APIENTRY glutMenuStatusFunc (void(GLUTCALLBACK *func)(int status, int x, int y))
 Sets the global menu status callback.

GLUTAPI void APIENTRY glutWindowStatusFunc (void(GLUTCALLBACK *func)(int state))
GLUTAPI int APIENTRY glutGet (GLenum state)
 Retrieves simple GLUT|ES state represented by integers.

GLUTAPI int APIENTRY glutDeviceGet (GLenum info)
GLUTAPI int APIENTRY glutExtensionSupported (const char *name)
GLUTAPI int APIENTRY glutGetModifiers (void)
GLUTAPI int APIENTRY glutLayerGet (GLenum type)
GLUTAPI void APIENTRY glutBitmapCharacterPoints (void *font, int x, int y, int character)
GLUTAPI void APIENTRY glutBitmapStringPoints (void *font, int x, int y, const char *string)
GLUTAPI void APIENTRY glutBitmapCharacterTex (void *font, int x, int y, int character)
GLUTAPI void APIENTRY glutBitmapStringTex (void *font, int x, int y, const char *string)
GLUTAPI void APIENTRY glutBitmapCharacter (void *font, int x, int y, int character)
 Renders a bitmap character using OpenGL|ES.

GLUTAPI void APIENTRY glutBitmapString (void *font, int x, int y, const char *string)
 Renders a bitmap string using OpenGL|ES.

GLUTAPI int APIENTRY glutBitmapWidth (void *font, int character)
 Returns the width in pixels of a character in a supported bitmap font.

GLUTAPI int APIENTRY glutBitmapHeight (void *font, int character)
 Returns the height in pixels of a character in a supported bitmap font.

GLUTAPI int APIENTRY glutBitmapLength (void *font, const char *string)
 Returns the length in pixels of a string.

GLUTAPI void APIENTRY glutStrokeCharacter (void *font, int character)
 Renders a stroke character using OpenGL|ES.

GLUTAPI void APIENTRY glutStrokeString (void *fontID, const char *string)
 Renders a stroke string using OpenGL|ES.

GLUTAPI int APIENTRY glutStrokeWidth (void *font, int character)
 Returns the width in pixels of a character in a supported stroke font.

GLUTAPI int APIENTRY glutStrokeHeight (void *font, int character)
 Returns the height in pixels of a character in a supported stroke font.

GLUTAPI int APIENTRY glutStrokeLength (void *font, const char *string)
 Returns the length in pixels of a string.

GLUTAPI void APIENTRY glutWireCube (GLfloat size)
 Render a wireframe cube.

GLUTAPI void APIENTRY glutSolidCube (GLfloat size)
 Render a solid cube.

GLUTAPI void APIENTRY glutWireSphere (GLfloat radius, GLint slices, GLint stacks)
 Render a wireframe sphere.

GLUTAPI void APIENTRY glutSolidSphere (GLfloat radius, GLint slices, GLint stacks)
 Render a solid sphere.

GLUTAPI void APIENTRY glutSolidTorus (GLfloat innerRadius, GLfloat outerRadius, GLint sides, GLint rings)
 Render a solid torus.

GLUTAPI void APIENTRY glutSolidCone (GLfloat base, GLfloat height, GLint slices, GLint stacks)
 Render a solid cone.

GLUTAPI int APIENTRY glutSelectFile (char *filename, const char *filter, const char *title)
 Open a select file browser dialog window and let the user choose a file.

GLUTAPI void APIENTRY glutSimulateButton (int button, int x, int y)
 Simulate a button click.

GLUTAPI void APIENTRY glutUnFullScreen (void)
 Disable the fullscreen mode.

GLUTAPI void APIENTRY glutIgnoreKeyRepeat (int ignore)
GLUTAPI void APIENTRY glutSetKeyRepeat (int repeatMode)
GLUTAPI void APIENTRY glutGameModeString (const char *string)
GLUTAPI int APIENTRY glutEnterGameMode (void)
GLUTAPI void APIENTRY glutLeaveGameMode (void)
GLUTAPI int APIENTRY glutGameModeGet (GLenum mode)


Define Documentation

#define APIENTRY
 

#define GERBERA_ES_1_1
 

#define GLUT_ACCUM   4
 

#define GLUT_ACTIVE_ALT   4
 

#define GLUT_ACTIVE_CTRL   2
 

#define GLUT_ACTIVE_SHIFT   1
 

#define GLUT_ALPHA   8
 

#define GLUT_API_VERSION   3
 

#define GLUT_BITMAP_4_BY_6   ((void*)10)
 

#define GLUT_BITMAP_6_BY_8   ((void*)11)
 

#define GLUT_BITMAP_8_BY_13   ((void*)3)
 

#define GLUT_BITMAP_8_BY_14   ((void*)12)
 

#define GLUT_BITMAP_9_BY_15   ((void*)2)
 

#define GLUT_BITMAP_HELVETICA_10   ((void*)6)
 

#define GLUT_BITMAP_HELVETICA_12   ((void*)7)
 

#define GLUT_BITMAP_HELVETICA_18   ((void*)8)
 

#define GLUT_BITMAP_TIMES_ROMAN_10   ((void*)4)
 

#define GLUT_BITMAP_TIMES_ROMAN_24   ((void*)5)
 

#define GLUT_BLUE   2
 

#define GLUT_CURSOR_BOTTOM_LEFT_CORNER   19
 

#define GLUT_CURSOR_BOTTOM_RIGHT_CORNER   18
 

#define GLUT_CURSOR_BOTTOM_SIDE   13
 

#define GLUT_CURSOR_CROSSHAIR   9
 

#define GLUT_CURSOR_CYCLE   5
 

#define GLUT_CURSOR_DESTROY   3
 

#define GLUT_CURSOR_FULL_CROSSHAIR   102
 

#define GLUT_CURSOR_HELP   4
 

#define GLUT_CURSOR_INFO   2
 

#define GLUT_CURSOR_INHERIT   100
 

#define GLUT_CURSOR_LEFT_ARROW   1
 

#define GLUT_CURSOR_LEFT_RIGHT   11
 

#define GLUT_CURSOR_LEFT_SIDE   14
 

#define GLUT_CURSOR_NONE   101
 

#define GLUT_CURSOR_RIGHT_ARROW   0
 

#define GLUT_CURSOR_RIGHT_SIDE   15
 

#define GLUT_CURSOR_SPRAY   6
 

#define GLUT_CURSOR_TEXT   8
 

#define GLUT_CURSOR_TOP_LEFT_CORNER   16
 

#define GLUT_CURSOR_TOP_RIGHT_CORNER   17
 

#define GLUT_CURSOR_TOP_SIDE   12
 

#define GLUT_CURSOR_UP_DOWN   10
 

#define GLUT_CURSOR_WAIT   7
 

#define GLUT_DEPTH   16
 

#define GLUT_DISPLAY_MODE_POSSIBLE   ((GLenum) 400)
 

#define GLUT_DOUBLE   2
 

#define GLUT_DOWN   0
 

#define GLUT_ELAPSED_TIME   ((GLenum) 700)
 

#define GLUT_ENTERED   1
 

#define GLUT_FULLY_COVERED   3
 

#define GLUT_FULLY_RETAINED   1
 

#define GLUT_GAME_MODE_ACTIVE   ((GLenum) 0)
 

#define GLUT_GAME_MODE_DISPLAY_CHANGED   ((GLenum) 6)
 

#define GLUT_GAME_MODE_HEIGHT   ((GLenum) 3)
 

#define GLUT_GAME_MODE_PIXEL_DEPTH   ((GLenum) 4)
 

#define GLUT_GAME_MODE_POSSIBLE   ((GLenum) 1)
 

#define GLUT_GAME_MODE_REFRESH_RATE   ((GLenum) 5)
 

#define GLUT_GAME_MODE_WIDTH   ((GLenum) 2)
 

#define GLUT_GREEN   1
 

#define GLUT_HAS_DIAL_AND_BUTTON_BOX   ((GLenum) 603)
 

#define GLUT_HAS_KEYBOARD   ((GLenum) 600)
 

#define GLUT_HAS_MOUSE   ((GLenum) 601)
 

#define GLUT_HAS_SPACEBALL   ((GLenum) 602)
 

#define GLUT_HAS_TABLET   ((GLenum) 604)
 

#define GLUT_HIDDEN   0
 

#define GLUT_INDEX   1
 

#define GLUT_INIT_DISPLAY_MODE   ((GLenum) 504)
 

#define GLUT_INIT_WINDOW_HEIGHT   ((GLenum) 503)
 

#define GLUT_INIT_WINDOW_WIDTH   ((GLenum) 502)
 

#define GLUT_INIT_WINDOW_X   ((GLenum) 500)
 

#define GLUT_INIT_WINDOW_Y   ((GLenum) 501)
 

#define GLUT_KEY_DOWN   103
 

#define GLUT_KEY_END   107
 

#define GLUT_KEY_F1   1
 

#define GLUT_KEY_F10   10
 

#define GLUT_KEY_F11   11
 

#define GLUT_KEY_F12   12
 

#define GLUT_KEY_F2   2
 

#define GLUT_KEY_F3   3
 

#define GLUT_KEY_F4   4
 

#define GLUT_KEY_F5   5
 

#define GLUT_KEY_F6   6
 

#define GLUT_KEY_F7   7
 

#define GLUT_KEY_F8   8
 

#define GLUT_KEY_F9   9
 

#define GLUT_KEY_HOME   106
 

#define GLUT_KEY_INSERT   108
 

#define GLUT_KEY_LEFT   100
 

#define GLUT_KEY_PAGE_DOWN   105
 

#define GLUT_KEY_PAGE_UP   104
 

#define GLUT_KEY_REPEAT_DEFAULT   2
 

#define GLUT_KEY_REPEAT_OFF   0
 

#define GLUT_KEY_REPEAT_ON   1
 

#define GLUT_KEY_RIGHT   102
 

#define GLUT_KEY_UP   101
 

#define GLUT_LEFT   0
 

#define GLUT_LEFT_BUTTON   0
 

#define GLUT_LUMINANCE   512
 

#define GLUT_MENU_IN_USE   1
 

#define GLUT_MENU_NOT_IN_USE   0
 

#define GLUT_MENU_NUM_ITEMS   ((GLenum) 300)
 

#define GLUT_MIDDLE_BUTTON   1
 

#define GLUT_MULTISAMPLE   128
 

#define GLUT_NORMAL   ((GLenum) 0)
 

#define GLUT_NOT_VISIBLE   0
 

#define GLUT_NUM_BUTTON_BOX_BUTTONS   ((GLenum) 607)
 

#define GLUT_NUM_DIALS   ((GLenum) 608)
 

#define GLUT_NUM_MOUSE_BUTTONS   ((GLenum) 605)
 

#define GLUT_NUM_SPACEBALL_BUTTONS   ((GLenum) 606)
 

#define GLUT_NUM_TABLET_BUTTONS   ((GLenum) 609)
 

#define GLUT_OVERLAY   ((GLenum) 1)
 

#define GLUT_PARTIALLY_RETAINED   2
 

#define GLUT_RED   0
 

#define GLUT_RGB   0
 

#define GLUT_RGBA   GLUT_RGB
 

#define GLUT_RIGHT_BUTTON   2
 

#define GLUT_SCREEN_HEIGHT   ((GLenum) 201)
 

#define GLUT_SCREEN_HEIGHT_MM   ((GLenum) 203)
 

#define GLUT_SCREEN_WIDTH   ((GLenum) 200)
 

#define GLUT_SCREEN_WIDTH_MM   ((GLenum) 202)
 

#define GLUT_SINGLE   0
 

#define GLUT_STENCIL   32
 

#define GLUT_STEREO   256
 

#define GLUT_STROKE_MONO_ROMAN   ((void*)1)
 

#define GLUT_STROKE_ROMAN   ((void*)0)
 

#define GLUT_UP   1
 

#define GLUT_VISIBLE   1
 

#define GLUT_WINDOW_ACCUM_ALPHA_SIZE   ((GLenum) 114)
 

#define GLUT_WINDOW_ACCUM_BLUE_SIZE   ((GLenum) 113)
 

#define GLUT_WINDOW_ACCUM_GREEN_SIZE   ((GLenum) 112)
 

#define GLUT_WINDOW_ACCUM_RED_SIZE   ((GLenum) 111)
 

#define GLUT_WINDOW_ALPHA_SIZE   ((GLenum) 110)
 

#define GLUT_WINDOW_BLUE_SIZE   ((GLenum) 109)
 

#define GLUT_WINDOW_BUFFER_SIZE   ((GLenum) 104)
 

#define GLUT_WINDOW_COLORMAP_SIZE   ((GLenum) 119)
 

#define GLUT_WINDOW_CURSOR   ((GLenum) 122)
 

#define GLUT_WINDOW_DEPTH_SIZE   ((GLenum) 106)
 

#define GLUT_WINDOW_DOUBLEBUFFER   ((GLenum) 115)
 

#define GLUT_WINDOW_FORMAT_ID   ((GLenum) 123)
 

#define GLUT_WINDOW_GREEN_SIZE   ((GLenum) 108)
 

#define GLUT_WINDOW_HEIGHT   ((GLenum) 103)
 

#define GLUT_WINDOW_NUM_CHILDREN   ((GLenum) 118)
 

#define GLUT_WINDOW_NUM_SAMPLES   ((GLenum) 120)
 

#define GLUT_WINDOW_PARENT   ((GLenum) 117)
 

#define GLUT_WINDOW_RED_SIZE   ((GLenum) 107)
 

#define GLUT_WINDOW_RGBA   ((GLenum) 116)
 

#define GLUT_WINDOW_STENCIL_SIZE   ((GLenum) 105)
 

#define GLUT_WINDOW_STEREO   ((GLenum) 121)
 

#define GLUT_WINDOW_WIDTH   ((GLenum) 102)
 

#define GLUT_WINDOW_X   ((GLenum) 100)
 

#define GLUT_WINDOW_Y   ((GLenum) 101)
 

#define GLUTAPI
 

#define glutBitmapCharacter   glutBitmapCharacterPoints
 

#define glutBitmapString   glutBitmapStringPoints
 

#define GLUTCALLBACK   __cdecl
 

#define GLUTES_API_VERSION   1
 


Function Documentation

GLUTAPI void APIENTRY glutAddMenuEntry const char *  label,
int  value
 

Adds a menu entry to the bottom of the current menu.

Parameters:
label is the title of the menu item.
value will be sent to the menu's callback if the menu item is selected.

GLUTAPI void APIENTRY glutAddSubMenu const char *  label,
int  submenu
 

Adds a submenu to the current menu.

Parameters:
label is the title of the submenu.
submenu is the submenu identifier.

GLUTAPI void APIENTRY glutAttachMenu int  button  ) 
 

Attaches a mouse button for the current window to the identifier of the current menu.

Parameters:
button is the button to attach the menu.
Note:
button should be one of GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, and GLUT_RIGHT_BUTTON. On PocketPC the stylus is considered as the mouse, and a stylus click simulates a GLUT_LEFT_BUTTON. So GLUT_LEFT_BUTTON is the only acceptable value for this function.

GLUTAPI void APIENTRY glutBitmapCharacter void *  font,
int  x,
int  y,
int  character
 

Renders a bitmap character using OpenGL|ES.

Parameters:
font is the bitmap font to use: GLUT_BITMAP_8_BY_13, GLUT_BITMAP_9_BY_15, GLUT_BITMAP_TIMES_ROMAN_10, GLUT_BITMAP_TIMES_ROMAN_24 GLUT_BITMAP_HELVETICA_10, GLUT_BITMAP_HELVETICA_12 GLUT_BITMAP_HELVETICA_18
x is the viewport x-position of the character to render.
y is the viewport y-position of the character to render.
character is the ASCII character to render.

GLUTAPI void APIENTRY glutBitmapCharacterPoints void *  font,
int  x,
int  y,
int  character
 

GLUTAPI void APIENTRY glutBitmapCharacterTex void *  font,
int  x,
int  y,
int  character
 

GLUTAPI int APIENTRY glutBitmapHeight void *  font,
int  character
 

Returns the height in pixels of a character in a supported bitmap font.

Parameters:
font is the bitmap font to use (cf. glutBitmapCharacter)

GLUTAPI int APIENTRY glutBitmapLength void *  font,
const char *  string
 

Returns the length in pixels of a string.

Parameters:
font is the bitmap font to use (cf. glutBitmapCharacter)
string is the C-string to study.

GLUTAPI void APIENTRY glutBitmapString void *  font,
int  x,
int  y,
const char *  string
 

Renders a bitmap string using OpenGL|ES.

Parameters:
font is the bitmap font to use (cf. glutBitmapCharacter)
x is the viewport x-position of the string to render.
y is the viewport y-position of the string to render.
string is the C-string to render.

GLUTAPI void APIENTRY glutBitmapStringPoints void *  font,
int  x,
int  y,
const char *  string
 

GLUTAPI void APIENTRY glutBitmapStringTex void *  font,
int  x,
int  y,
const char *  string
 

GLUTAPI int APIENTRY glutBitmapWidth void *  font,
int  character
 

Returns the width in pixels of a character in a supported bitmap font.

Parameters:
font is the bitmap font to use (cf. glutBitmapCharacter)

GLUTAPI void APIENTRY glutChangeToMenuEntry int  item,
const char *  label,
int  value
 

Changes the specified menu item in the current menu to a menu entry.

Parameters:
item is the index of the menu item (the 1st entry item is 1).
label is the new title of the menu entry.
value is the new value that will be sent to the menu's callback if the menu item is selected.

GLUTAPI void APIENTRY glutChangeToSubMenu int  item,
const char *  label,
int  submenu
 

Changes the specified menu item in the current menu to a submenu.

Parameters:
item is the index of the menu item (the 1st entry item is 1).
label is the new title of the menu entry.
submenu is the submenu identifier.

GLUTAPI int APIENTRY glutCreateMenu void(GLUTCALLBACK *func  )(int)  ) 
 

Create a menu.

Parameters:
func is the callback to associate to the menu.

GLUTAPI int APIENTRY glutCreateWindow const char *  title  ) 
 

Creates a window associated to a OpenGL|ES low-level surface.

Parameters:
title is the window's title.
Returns:
the window handle (in fact a Win32 HWND handle).

GLUTAPI void APIENTRY glutDestroy void   ) 
 

Destroys all GLUT windows and ressources.

Note:
This function must be called before the program halt.

GLUTAPI void APIENTRY glutDestroyMenu int  menu  ) 
 

Destroys a menu.

Parameters:
menu is the menu identifier.

GLUTAPI void APIENTRY glutDestroyWindow int  win  ) 
 

Initializes GLUT ressources.

Parameters:
win is the window handle.

GLUTAPI void APIENTRY glutDetachMenu int  button  ) 
 

Detaches a mouse button for the current window to the identifier of the current menu.

Parameters:
button is the button to detach the menu.
Note:
button should be one of GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, and GLUT_RIGHT_BUTTON. On PocketPC the stylus is considered as the mouse, and a stylus click simulates a GLUT_LEFT_BUTTON. So GLUT_LEFT_BUTTON is the only acceptable value for this function.

GLUTAPI int APIENTRY glutDeviceGet GLenum  info  ) 
 

GLUTAPI void APIENTRY glutDisplayFunc void(GLUTCALLBACK *func  )(void)  ) 
 

Sets the display callback for the current window.

Parameters:
func is the new display callback function.

GLUTAPI int APIENTRY glutEnterGameMode void   ) 
 

Note:
This function is not yet implemented

GLUTAPI void APIENTRY glutEntryFunc void(GLUTCALLBACK *func  )(int state)  ) 
 

Sets the mouse enter/leave callback for the current window.

Parameters:
func is the new entry callback function.
state is either GLUT_LEFT or GLUT_ENTERED.
Note:
This callback has never called on a PocketPC with a stylus.

GLUTAPI int APIENTRY glutExtensionSupported const char *  name  ) 
 

GLUTAPI void APIENTRY glutFullScreen void   ) 
 

Set the current window in fullscreen.

GLUTAPI int APIENTRY glutGameModeGet GLenum  mode  ) 
 

Note:
This function is not yet implemented

GLUTAPI void APIENTRY glutGameModeString const char *  string  ) 
 

Note:
This function is not yet implemented

GLUTAPI int APIENTRY glutGet GLenum  state  ) 
 

Retrieves simple GLUT|ES state represented by integers.

Parameters:
state is bame of state to retrieve.

GLUTAPI int APIENTRY glutGetMenu void   ) 
 

Gets the current menu identifier.

Returns:
the current menu identifier.

GLUTAPI int APIENTRY glutGetModifiers void   ) 
 

GLUTAPI int APIENTRY glutGetWindow void   ) 
 

Gets the current window's handle.

Returns:
The handle (HWND) of the current window.

GLUTAPI void APIENTRY glutHideWindow void   ) 
 

Hide the current window.

GLUTAPI void APIENTRY glutIconifyWindow void   ) 
 

Minimize the current window.

GLUTAPI void APIENTRY glutIdleFunc void(GLUTCALLBACK *func  )(void)  ) 
 

Sets the global idle callback.

Parameters:
func is the new idle callback function.
Note:
The idle function is called when no other events have to be treated.

GLUTAPI void APIENTRY glutIgnoreKeyRepeat int  ignore  ) 
 

Note:
This function is not yet implemented

GLUTAPI void APIENTRY glutInit int *  argcp,
char **  argv
 

Initialize GLUT ressources.

Parameters:
argcp number of arguments in the argv array
argv arguments array

GLUTAPI void APIENTRY glutInitDisplayMode unsigned int  mode  ) 
 

....

Parameters:
mode is the ...

GLUTAPI void APIENTRY glutInitWindowPosition int  x,
int  y
 

Initializes GLUT ressources.

Parameters:
argcp number of arguments in the argv array
argv arguments array

GLUTAPI void APIENTRY glutInitWindowSize int  width,
int  height
 

Initializes the default window size.

Parameters:
width is the window's with in pixel-unit.
height is the window's heigh in pixel-unit.

GLUTAPI void APIENTRY glutKeyboardFunc void(GLUTCALLBACK *func  )(unsigned char key, int x, int y)  ) 
 

Sets the keyboard callback for the current window.

Parameters:
func is the new keyboard callback function.
Note:
The callback is called each time an ASCII character is generated from the keyboard. Direction keys and all GLUT_KEY_* characters rather calls the callback defined with glutSpecialFunc .

GLUTAPI void APIENTRY glutKeyboardUpFunc void(GLUTCALLBACK *func  )(unsigned char key, int x, int y)  ) 
 

Sets the keyboard callback up (key release) for the current window.

Parameters:
func is the new keyboard up callback function.
Note:
The callback is called each time an ASCII character is generated from the keyboard. Direction keys and all GLUT_KEY_* characters rather calls the callback defined with glutSpecialFunc .

GLUTAPI int APIENTRY glutLayerGet GLenum  type  ) 
 

GLUTAPI void APIENTRY glutLeaveGameMode void   ) 
 

Note:
This function is not yet implemented

GLUTAPI void APIENTRY glutMainLoop void   ) 
 

Starts the main GLUT Visualization-Interaction loop.

Returns:
This function never return.

GLUTAPI void APIENTRY glutMenuStateFunc void(GLUTCALLBACK *func  )(int state)  ) 
 

Sets the global menu stae callback.

Parameters:
func is the new menu state callback function.

GLUTAPI void APIENTRY glutMenuStatusFunc void(GLUTCALLBACK *func  )(int status, int x, int y)  ) 
 

Sets the global menu status callback.

Parameters:
func is the new menu status callback function.

GLUTAPI void APIENTRY glutMotionFunc void(GLUTCALLBACK *func  )(int x, int y)  ) 
 

Sets the mouse motion callback for the current window.

Parameters:
func is the new mouse motin callback function.
Note:
The motion callback for a window is called when the mouse moves within the window while one or more mouse buttons are pressed.

GLUTAPI void APIENTRY glutMouseFunc void(GLUTCALLBACK *func  )(int button, int state, int x, int y)  ) 
 

Sets the mouse callback for the current window.

Parameters:
func is the new mouse callback function.

GLUTAPI void APIENTRY glutPassiveMotionFunc void(GLUTCALLBACK *func  )(int x, int y)  ) 
 

Sets the mouse passive motion callback for the current window.

Parameters:
func is the new mouse passive motin callback function.
Note:
The passive motion callback for a window is called when the mouse moves within the window while no mouse buttons are pressed This callback is never called on a PocketPC with a stylus.

GLUTAPI void APIENTRY glutPopWindow void   ) 
 

Change the stacking order of the current window relative to its siblings.

GLUTAPI void APIENTRY glutPositionWindow int  x,
int  y
 

GLUTAPI void APIENTRY glutPostRedisplay void   ) 
 

Requests the current window to be refreshed.

GLUTAPI void APIENTRY glutPostWindowRedisplay int  win  ) 
 

Request a specific window to be refreshed.

Parameters:
win is the window handle.

GLUTAPI void APIENTRY glutPushWindow void   ) 
 

Change the stacking order of the current window relative to its siblings.

GLUTAPI void APIENTRY glutRemoveMenuItem int  item  ) 
 

Removes a menu item in the current menu.

Parameters:
item is the index of the menu item (the 1st entry item is 1).

GLUTAPI void APIENTRY glutReshapeFunc void(GLUTCALLBACK *func  )(int width, int height)  ) 
 

Sets the reshape callback for the current window.

Parameters:
func is the new reshape callback function.

GLUTAPI void APIENTRY glutReshapeWindow int  width,
int  height
 

Reshapes the current window.

Parameters:
width is the new width in pixel-unit.
height is the new height in pixel-unit.

GLUTAPI int APIENTRY glutSelectFile char *  filename,
const char *  filter,
const char *  title
 

Open a select file browser dialog window and let the user choose a file.

Parameters:
filename is the string that receives the filename and path of the choosen file.
filter is a buffer containing pairs of null-terminated filter strings. The last string in the buffer must be terminated by two NULL characters.
title is the title of the dialog window.
Note:
The filter parameter is defined is this way : The first string in each pair is a display string that describes the filter (for example, "JPEG Files"), and the second string specifies the filter pattern (for example, "*.JPG"). To specify multiple filter patterns for a single display string, use a semicolon to separate the patterns (for example, "*.JPG;*.JPEG"). A pattern string can be a combination of valid filename characters and the asterisk (*) wildcard character. Do not include spaces in the pattern string. This function has been introduced in GLUT|ES 1.0.

GLUTAPI void APIENTRY glutSetCursor int  cursor  ) 
 

GLUTAPI void APIENTRY glutSetIconTitle const char *  title  ) 
 

GLUTAPI void APIENTRY glutSetKeyRepeat int  repeatMode  ) 
 

Note:
This function is not yet implemented

GLUTAPI void APIENTRY glutSetMenu int  menu  ) 
 

Sets the current menu identifier.

Parameters:
menu is the menu identifier.

GLUTAPI void APIENTRY glutSetWindow int  win  ) 
 

Changes the current window.

Parameters:
win is the window handle.

GLUTAPI void APIENTRY glutSetWindowTitle const char *  title  ) 
 

Changes the current window's title.

Parameters:
title is the new title of the window.

GLUTAPI void APIENTRY glutShowWindow void   ) 
 

Show the current window.

GLUTAPI void APIENTRY glutSimulateButton int  button,
int  x,
int  y
 

Simulate a button click.

Parameters:
button is the button identifier: GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON or GLUT_RIGHT_BUTTON.
x is the virtual mouse x-position during the click.
y is the virtual mouse y-position during the click.
Note:
This function has been introduced in GLUT|ES 1.0.

GLUTAPI void APIENTRY glutSolidCone GLfloat  base,
GLfloat  height,
GLint  slices,
GLint  stacks
 

Render a solid cone.

GLUTAPI void APIENTRY glutSolidCube GLfloat  size  ) 
 

Render a solid cube.

GLUTAPI void APIENTRY glutSolidSphere GLfloat  radius,
GLint  slices,
GLint  stacks
 

Render a solid sphere.

GLUTAPI void APIENTRY glutSolidTorus GLfloat  innerRadius,
GLfloat  outerRadius,
GLint  sides,
GLint  rings
 

Render a solid torus.

GLUTAPI void APIENTRY glutSpecialFunc void(GLUTCALLBACK *func  )(int key, int x, int y)  ) 
 

Sets the special keyboard callback for the current window.

Parameters:
func is the new special callback function.
Note:
This callback handle all GLUT_KEY_* special keys.

GLUTAPI void APIENTRY glutSpecialUpFunc void(GLUTCALLBACK *func  )(int key, int x, int y)  ) 
 

Sets the special keyboard up (key release) callback for the current window.

Parameters:
func is the new special up callback function.
Note:
This callback handle all GLUT_KEY_* special keys.

GLUTAPI void APIENTRY glutStrokeCharacter void *  font,
int  character
 

Renders a stroke character using OpenGL|ES.

Parameters:
font is the stroke font to use: GLUT_STROKE_ROMAN or GLUT_STROKE_MONO_ROMAN For both, the maximum top character in the font is 119.05 units and the bottom descends 33.33 units. With GLUT_STROKE_MONO_ROMAN, each character is 104.76 units wide.
x is the viewport x-position of the character to render.
y is the viewport y-position of the character to render.
character is the ASCII character to render.

GLUTAPI int APIENTRY glutStrokeHeight void *  font,
int  character
 

Returns the height in pixels of a character in a supported stroke font.

Parameters:
font is the stroke font to use (cf. glutBitmapCharacter)

GLUTAPI int APIENTRY glutStrokeLength void *  font,
const char *  string
 

Returns the length in pixels of a string.

Parameters:
font is the stroke font to use (cf. glutStrokeCharacter)
string is the C-string to study.

GLUTAPI void APIENTRY glutStrokeString void *  fontID,
const char *  string
 

Renders a stroke string using OpenGL|ES.

Parameters:
font is the stroke font to use (cf. glutStrokeCharacter)
x is the viewport x-position of the string to render.
y is the viewport y-position of the string to render.
string is the C-string to render.

GLUTAPI int APIENTRY glutStrokeWidth void *  font,
int  character
 

Returns the width in pixels of a character in a supported stroke font.

Parameters:
font is the stroke font to use (cf. glutStrokeCharacter)

GLUTAPI void APIENTRY glutSwapBuffers void   ) 
 

Requests the current window's buffer to be swapped.

Note:
This function should only be called with double-buffered surfaces.

GLUTAPI void APIENTRY glutTimerFunc unsigned int  millis,
void(GLUTCALLBACK *func  )(int value),
int  value
 

Registers a timer callback to be triggered in a specified number of milliseconds.

Parameters:
millis is the number of milliseconds to pass before calling the callback.
func is the timer callback function.
value is an nteger value to pass to the timer callback.

GLUTAPI void APIENTRY glutUnFullScreen void   ) 
 

Disable the fullscreen mode.

Note:
This function has been introduced in GLUT|ES 1.0.

GLUTAPI void APIENTRY glutVisibilityFunc void(GLUTCALLBACK *func  )(int state)  ) 
 

Sets the visibility callback for the current window.

Parameters:
func is the new visibility callback function.
state is either GLUT_NOT_VISIBLE or GLUT_VISIBLE.

GLUTAPI void APIENTRY glutWindowStatusFunc void(GLUTCALLBACK *func  )(int state)  ) 
 

GLUTAPI void APIENTRY glutWireCube GLfloat  size  ) 
 

Render a wireframe cube.

GLUTAPI void APIENTRY glutWireSphere GLfloat  radius,
GLint  slices,
GLint  stacks
 

Render a wireframe sphere.


Generated on Mon Jan 24 16:35:12 2005 for GLUT|ES by doxygen 1.3.6