Previous
1.
glutInit
glutInit command initializes the GLUT library and negotiates a session with the window system. Options also processes the command line. It is used as follows: void <10)
glutInit (int * argcp, char ** argv)
argcp
Where is a pointer to the unmodified argc variable. As this function returns the value pointed to argcp is updated.
Parameter argv is for unmodified main variable argv. As the previous setting, updates the value of argv.
2. glutInitWindowPosition and glutInitWindowSize
These functions set the parameters for the starting position and the size of the window that is created. They are used as follows: void
glutInitWindowSize (int width, int height) void
glutInitWindowPosition (int x, int y);
Where width is the width and height of the window height in pixels.
X and Y coordinates correspond to the window when created.
3.
glutInitDisplayMode
This function sets the initial display mode. This mode is for creating windows high-level view objects and layers to determine the OpenGL display for the window to be created. It is used as follows: void
glutInitDisplayMode (unsigned int mode);
mode
Where is the option desired bit mask (the description of these can be found in the reference source)
masks are
GLUT_RGBA GLUT_RGBA
GLUT_INDEX
GLUT_SINGLE
GLUT_DOUBLE
GLUT_ACCUM
GLUT_ALPHA
GLUT_DEPTH
GLUT_STENCIL
GLUT_MULTISAMPLE
GLUT_STEREO
GLUT_LUMINANCE
4.
glutMainLoop process enters the event loop. This routine must be called at least once a GLUT program. Once called, this routine will never return, just going to call all the callbacks and callbacks have been registered. Is used: void
glutMainLoop (void);
5.
glutCreateWindow
Create a top-level window. It is used as follows: int
glutCreateWindow (char * name);
The window name is given by the variable name. The state of deployment or display of a window is initially displayed by the window, but the state of deployment does not act until it enters the cycle generated by the function glutMainLoop. This means that you can not effectively render this window until you have entered the cycle.
6.
glutCreateSubWindow
Create a sub window from the parameters obtained. It is used as
glutCreateSubWindow int (int win, int x, int y, int width, int height);
where you have to specify the name of the window that you wish to add subwindow (parameter win) . The parameters X and Y correspond to the location of the subwindow in the original window. Heigth Widht and specify respectively the width and height of the subwindow.
status display or display of the subwindow is displayed initially, but the state of deployment does not act until it enters the cycle generated by the function glutMainLoop. It is similar to using glutCreateWindow function.
7.
glutGetWindow glutSetWindow and glutSetWindow
sets the current window, glutGetWindow returns the ID of the current window. If there are no windows or the current window was destroyed, glutGetWindow returns the value of 0. glutSetWindow not change the layer in use for the window, this is done so by way glutUseLayer function.
used
glutSetWindow void (int win);
glutGetWindow int (void);
win
Where is the handle of the window.
8.
glutDestroyWindow
glutDestroyWindow void (int win);
Destroy the window parameter determined by the win. This also destroys the context associated to OpenGL, the color map logical layers and related conditions. Any subwindow of the window are also destroyed destroyed. If the window to destroy the current glutGetWindow returns the value of 0.
9.
glutPostRedisplay
glutPostRedisplay void (void);
marks the normal plane of current window as needed to be re deployed. In the next iteration through glutMainLoop be called the callback or callback to re deploy the normal plane of the window
10.
glutSwapBuffers glutSwapBuffers void (void);
Perform a buffer exchange in the layer in use for the current window. Specifically, it causes the contents of the rear buffer application layer content becomes front buffer. In this step the contents of the buffer back cone is considered undefined or indefinite. The update is usually performed during the vertical re-trace monitor, rather than being taken immediately after the function call glutSwapBuffers. Before returning, this function performs a glFlush. Subsequent OpenGL commands can be ordered immediately after calling the function, but are not executed until the buffer exchange is completed.
11.
glutPositionWindow glutPositionWindow void (int x, int y);
Requests a change in the position of the current window. High-level window parameters X and Y are offsets of pixels on the screen origin. For subwindows, the X and Y are pixel offsets from the parent window. Requests made by glutPositionWindow not processed immediately, it is executed after returning to the main event loop. In the case of top-level windows, this function is considered only as a request to position the window. The window system is free to implement their own policies for the placement of top-level windows, the intention is that these windows can be re-positioned as glutPositionWindow parameters.
12.
glutReshapeWindow glutReshapeWindow void (int width, int height);
Where width is the width of the window again and height the new height. Make a request to change the current window size. The width and height parameters are given in pixels and should be positive values.
Like the previous function, applications are not processed immediately and high-level window is considered as a request to modify the window.
13.
glutFullScreen glutFullScreen void (void);
Requests that the current window size is made full screen. The concept of complete window system varies depending on the window system. The idea is to make the window as long as possible and disable any window decorations or added to the edge of the window system. The length and width window is not guaranteed to be the same as those of the screen, but that is the intention to make the window full size.
This function is defined only for top-level windows. Like the two preceding instructions is not processed immediately.
14.
glutPushWindow glutPopWindow and glutPopWindow void (void);
glutPushWindow void (void);
These commands work for the two levels of windows, main and sub-windows. The effect of making a push and pop in the windows is not performed immediately. Instead, it saves the execution to return to the GLUT event cycle. Subsequently, these instructions apply for a replacement of the previously saved request for that window. The effect of pop and push to make high-level windows is a political consideration of the window system to stack them.
15. glutShowWindow, glutHideWindow, glutIconifyWindow
glutShowWindow void (void);
glutHideWindow void (void);
glutIconifyWindow void (void);
glutShowWindow shows the current window. GlutHideWindow
hides the current window. GlutIconifyWindow 16. glutSetWindowTitle, glutSetIconTitle
glutSetWindowTitle void (char * name);
glutSetIconTitle void (char * name);
name: must abide by a string of ASCII characters.
glutSetWindowTitle sets the bar in the window title
glutSetIconTitle put the title bar in the window minimized
17.
glutSetCursor
glutSetCursor void (int cursor);
cursor name cursor image to change. GLUT_CURSOR_RIGHT_ARROW
Arrow pointing up and right. GLUT_CURSOR_LEFT_ARROW
Arrow pointing up and left. GLUT_CURSOR_INFO
hand signals. GLUT_CURSOR_DESTROY
encrusijados Skull and Bones.
GLUT_CURSOR_HELP
question mark. Arrow
GLUT_CURSOR_CYCLE
rotating in a circle. GLUT_CURSOR_SPRAY
Spray Can.
GLUT_CURSOR_WAIT Clock. GLUT_CURSOR_TEXT
Cursor to point to the insertion of text. GLUT_CURSOR_CROSSHAIR
Cutter. GLUT_CURSOR_UP_DOWN
bidirectional pointer up and down. GLUT_CURSOR_LEFT_RIGHT
bidirectional pointer left and right Arrow
GLUT_CURSOR_TOP_SIDE
upunta to a top side. GLUT_CURSOR_BOTTOM_SIDE
Arrow pointing to bottom side. GLUT_CURSOR_LEFT_SIDE
Arrow pointing to left side. GLUT_CURSOR_RIGHT_SIDE
Arrow pointing to right side. GLUT_CURSOR_TOP_LEFT_CORNER
Arrow pointing to the upper left corner. GLUT_CURSOR_TOP_RIGHT_CORNER
Arrow pointing to the top right. GLUT_CURSOR_BOTTOM_RIGHT_CORNER
Arrow pointing to the lower left corner. GLUT_CURSOR_BOTTOM_LEFT_CORNER
Arrow pointing to bottom right. Cursor
GLUT_CURSOR_FULL_CROSSHAIR cutter full screen. GLUT_CURSOR_NONE
Cursor invisible.
Using the cursor GLUT_CURSOR_INHERIT
father. GlutSetCursor
change the cursor image of the current window.
18.
glutEstablishOverlay
Use:
glutEstablishOverlay void (void);
Description:
glutEstablishOverlay: establishes an overlay (if possible) for the current window. The requested display mode for coating is determined by the initial mode of deployment.
glutLayerGet (GLUT_OVERLAY_POSSIBLE) can be called to determine if a coating is possible in the current window with the initial mode of current deployment. Do not attempt to establish an overlay when it is not possible, since GLUT terminate the program.
If glutEstablishOverlay is called when an overlay already exists, the existing coating is removed first, and then a new overlay is established.
19. void
glutUseLayer glutUseLayer (GLenum layer);
layer GLUT_OVERLAY
Any GLUT_NORMAL or select the normal plane or overlay respectively.
glutUseLayer: change the layer in use per window for the current window by selecting any normal plane or overlay. The coating should only be specified if it exists, however, an uncoated window can still call glutUseLayer (GLUT_NORMAL). OpenGL window commands are directed to the current layer in use.
For the layer in use in a window can call glutLayerGet (GLUT_LAYER_IN_USE).
20.
glutRemoveOverlay
glutRemoveOverlay void (void);
glutRemoveOverlay
removes the lining (if any). GlutRemoveOverlay is safe to call even if there is a coating currently set, do nothing in that case. Implicitly, the layer in use standard window changes to the plane immediately after the coating has been removed.
If the program tries to reestablish the later coating is typically faster and use less resources hacienda use glutShowOverlay glutHideOverlay and simply change the deployment status of the coating.
21.
glutPostOverlayRedisplay
glutPostOverlayRedisplay void (void);
Make the lining of the current window as needing to be re-deployed. The next iteration through glutMainLoop, the lining of the window will display the callback (or simply the display callback if no overlay deployment registered callback) will invite to re-deploy the plane of the window coating. GlutPostOverlayRedisplay multiple calls before giving opportunity to the next display callback (or the opportunity to display the callback with the coating is recorded if any) is generated nly a single re-deployment. glutPostOverlayRedisplay deployment may be called within the callback or covering the window and that window highlight for re-deployment.
Logically, a notification of damage to a coating for working with glutPostOverlayRedisplay window on the damaged window. Unlike damage reported by the window system, glutPostOverlayRedisplay not fix the real state of damage coating (returned by glutLayerGet (GLUT_OVERLAY_DAMAGED)).
22. glutShowOverlay, glutHideOverlay
glutShowOverlay void (void);
glutHideOverlay void (void);
glutShowOverlay shows the cover of the current window, hide glutHideOverlay coating. The effect of showing or hiding an overlay takes place immediately. Note that glutShowOverlay not really show the overlay unless the window is also shown (and even a window shown may be hidden by other windows, so much hiding cover). Typically, faster and farm use less system resources to use these routines to control the state deployment of a coating to remove and restore the coating.
23.
glutCreateMenu glutCreateMenu
int (void (* func) (int value));
func The callback function to call when the menu is a menu entry is selected. The value passed to the callback is determined by the value of selecting the menu entry.
glutCreateMenu creates a new pop-up menu and returns a unique identifier entered small. The range starts assigning identifiers into one. The menu identifier range is independent of the range window handle. Implicitly, the current menu is set to re-created menu. This identifier menu can be used by calling glutSetMenu.
When the menu callback is called because an entry is selected for the menu, the current menu will be implicitly set to the menu with the selected entry before the callback is made.
24. glutSetMenu, glutGetMenu
glutSetMenu void (int menu);
glutGetMenu int (void);
menu menu handle for the current menu. GlutSetMenu
fixed the current menu; glutGetMenu returns the current menu handle. If no menu or previous menu was removed, glutGetMenu returns zero.
25.
glutDestroyMenu
glutDestroyMenu void (int menu);
menu menu handle to destroy. GlutDestroyMenu
destroys
menu menu specified by the argument. If the argument was the menu current menu, the current menu becomes invalid and glutGetMenu return zero.
26.
glutAddMenuEntry
glutAddMenuEntry void (char * name, int value);
name ASCII character string to display in the entrance of the menu.
value to return value to the callback function from the menu if the menu entry is selected.
glutAddMenuEntry adds a menu entry in the latter part of current menu. The network name will be displayed for the newly added entry. If the menu entry is selected by the user, the menu callback is called passing value as a callback parameter.
27.
glutAddSubMenu
glutAddSubMenu void (char * name, int menu);
name ASCII character string to be displayed in the menu object which is derived from the sub-menu. ID
menu menu that will lead this sub-menu.
glutAddSubMenu add a sub-menu trigger in the bottom of the current menu. The network name will be displayed for the sub-menu trigger added back. If the sub-menu trigger is entered, the sub-menu will be numbered by the plot menu and placed in cascade thus allowing the sub-menu items are selected.
28.
glutChangeToMenuEntry
glutChangeToMenuEntry void (int entry, char * name, int value);
Index entry menu items in the current menu (1 is the highest level in a menu item).
name ASCII character string to be displayed in the menu entry.
value to return value to the callback function from the menu if the menu entry is selected. GlutChangeToMenuEntry
change the menu entry specified in the current menu. The entry parameter determines which menu item should be changed, with one being the higher level. entry needs to be between 1 and glutGet (GLUT_MENU_NUM_ITEMS) inclusive. The menu item to change and not have to be a menu entry. The network name will be displayed for the newly changed menu entry. The value value will be returned to the callback from the menu if this menu entry is selected.
29.
glutChangeToSubMenu
glutChangeToSubMenu void (int entry, char * name, int menu);
Index entry menu items in the current menu (1 is the highest level in a menu item).
name ASCII character string to be displayed in the menu entry.
value Value to return to callback menu if the menu entry is selected. GlutChangeToSubMenu
change the menu item specified in the current menu into a sub-menu trigger. The entry parameter determines which menu item should be changed, with a standard element in the highest level. entry needs to be between 1 and glutGet (GLUT_MENU_NUM_ITEMS) even. The menu item to change no longer has to be a sub-menu trigger. The network name will be displayed for the sub-menu trigger changed again. The parameter menu is the identifier for the sub-menu name placed in cascade again.
30.
glutRemoveMenuItem
glutRemoveMenuItem void (int entry);
Index entry menu items in the current menu (1 is the highest level in a menu item).
glutRemoveMenuItem removes the item from the menu entry regardless of whether a menu entry or a sub-menu trigger. entry needs to be between 1 and glutGet (GLUT_MENU_NUM_ITEMS) even. The menu items below the removed menu item are renumbered.
31. glutAttachMenu, glutDetachMenu
glutAttachMenu void (int button);
glutDetachMenu void (int button);
button The button to attach or remove the menu.
glutAttachMenu one button mouse attached to the window today, with the active menu handle; glutDetachMenu off button mouse attached to the active window. By attaching an identifier to a button menu, the menu will appointed when the user presses the specified button. The button value must be one of the following: GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, and GLUT_RIGHT_BUTTON. Note that the menu is attached to the button by ID and not by reference.
32.
glutDisplayFunc
glutDisplayFunc void (void (* func) (void));
func The new display function
glutDisplayFunc display function available for the current window. When GLUT determines that the plane normal to the window needs to be cooled, the window display callback will be called. Before the call, the current window will be ready at the window that needs to be cooled and (if no overlay display callback function is registered) the layer in use is placed in the normal plane. The display callback function is called with no parameters. The entire normal plane region should be refreshed in response to the call
GLUT determines when the display callback function must be activated, based on the state refresh the window. The state of soda to the window can be either by calling the function explicitito glutPostRedisplay or implied as a result of a report window damage, called by the window system.
33.
glutOverlayDisplayFunc glutOverlayDisplayFunc void (void (* func) (void));
func The new overlay display callback function.
glutDisplayFunc provides overlay display callback function for the current window. The overlay display callback function is the same as funconalmente display callback except that the overlay display callback function is used to cool the overlay of the window.
GLUT determines when the overlay display callback function must be activated, based on the state refresh the window. The state of soda to the window can be either explicitito calling the function or implied glutPostOverlayRedisplay as a result of window damage report, called by the window system.
34.
glutReshapeFunc glutReshapeFunc void (void (* func) (int length, int high));
func
The new feature provides resizing
glutReshapeFunc resize function for the current window. Resizing function is activated when a window is resized. This is also called immediately before the first callback function dela display window after the sale is created or whenever an overlay for the window is established. The length and height are parameters of the function and specify the new window size in pixels.
35.
glutKeyboardFunc glutKeyboardFunc void (void (* func) (unsigned char key, int x, int y));
fun.
The key new feature
glutKeyboardFunc particular frame has the function for current sales. When the user types in the window, each key press generating an ASCII character will generate a keyboard function. The key parameter is the generated ASCII character. The state of modifier keys such as Shift can not be determined directly, its only effect is to return an ASCII data x and y parameters indicate the mouse position relative coordinates within the window when the button was pressed. When a new window is created, no keyboard no function assigned, and all ASCII characters created in the window are ignored.
36.
glutMouseFunc glutMouseFunc void (void (* func) (int button, int state, int x, int y));
func.
The new role of glutMouseFunc
mouse has mouse function for the current window. When a user presses and releases a mouse button within the window, each key and each dropped generate a function of the mouse. The button parameter is one of the following GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, or GLUT_RIGHT_BUTTON. For systems with only 2 mouse buttons, you can not generate the state GLUT_MIDDLE_BUTTON. And for systems with a single button mouse, one may use the parameter GLUT_LEFT_BUTTON. The parameter state is GLUT_UP or GLUT_DOWN indicating that was generated due to the button press or release, respectively, x and y parameters indicate the mouse position relative coordinates within the window when the mouse button was pressed.
37. glutMotionFunc, glutPassiveMotionFunc
glutMotionFunc void (void (* func) (int x, int y));
glutPassiveMotionFunc void (void (* func) (int x, int y));
func The new motion or movement function glutMotionFunc
glutPassiveMotionFunc passive and has the function of movement or passive movement within the active window. Function movement is triggered when mouse moves within the window while one or more buttons are pressed. Passive motion function is called when the mouse moves within the window while no buttons pressed. X and y parameters indicate the mouse position in window relative coordinates.
38.
glutVisibilityFunc glutVisibilityFunc void (void (* func) (int state));
func
New
glutVisibilityFunc visibility function has the role of visibility within the current window. This function is called when the visibility in a window has changed. The state parameter can be GLUT_NOT_VISIBLE or GLUT_VISIBLE depending on the current visibility window. GLUT_VISIBLE not distinguish between a window is fully visible to a partially visible. GLUT_NOT_VISIBLE means that no part of the window is visible. GLUT considers a window visible if any pixel in the window is visible or any pixel of any sale descendant is visible on the screen.
39.
glutEntryFunc glutEntryFunc void (void (* func) (int state));
func
New
glutEntryFunc input function provides the input / output of the mouse for the current window. The parameter state is one of the following: GLUT_LEFT or GLUT_ENTERED, depending on whether the mouse pointer has entered or left the window. Some systems do not generate correct function calls input and output of the mouse.
40.
glutSpecialFunc glutSpecialFunc void (void (* func) (int key, int x, int y));
func
New
glutSpecialFunc input function has the special function keys within the current window. This function is activated when the function keys or arrow keys are pressed on the keyboard. The key parameter is a constant GLUT_KEY_ * for special key pressed. X and y parameters indicate the mouse position relative coordinates within the window when the button was pressed. The special keys are: F1 key
GLUT_KEY_F1
GLUT_KEY_F2
GLUT_KEY_F3 F2 key F3 key
F4 key
GLUT_KEY_F4
GLUT_KEY_F5
F5 key F6 key
GLUT_KEY_F6
GLUT_KEY_F7
GLUT_KEY_F8 F7 key F8 key
GLUT_KEY_F9 F9 key
GLUT_KEY_F10
GLUT_KEY_F11 F10 key F11 key
GLUT_KEY_F12
F12 key. GLUT_KEY_LEFT
left arrow key
GLUT_KEY_UP
address above GLUT_KEY_RIGHT
Left button key
GLUT_KEY_DOWN address below
GLUT_KEY_PAGE_UP
Tacla form feed. GLUT_KEY_PAGE_DOWN
Tacla back page GLUT_KEY_HOME
Home key
GLUT_KEY_END End key key
imsertar GLUT_KEY_INSERT
Note that the escape key, delete and delete generate an ASCII code, so they are not special keys
41.
glutSpaceballMotionFunc glutSpaceballMotionFunc void (void (* func) (int x, int y, int z));
func The new entry for the function
glutSpaceballMotionFunc has the function within the current window to the Spaceball. This function is activated when the window has Spaceball input focus (usually when the mouse is inside the window) and the user generates a translation of the Spaceball. The parameters x, y and z indicate the translation in the X, Y and Z respectively. Parameters normalized to be within the range of -1000 to 1000.
Note: The Spaceball is an input device with 6 degrees of freedom
42.
glutSpaceballRotateFunc glutSpaceballRotateFunc void (void (* func) (int x, int y, int z));
func The new entry to the function function
glutSpaceballRotateFunc available for the Spaceball rotation within the current window. This function is called when the Spaceball input focus (usually when the mouse is inside the window) and the user generates Spaceball rotation. The parameters x, y and z indicate the rotation in the X, Y and Z. parameters are normalized to be within the range of -1800 to 1800.
Note: The Spaceball is an input device with 6 degrees of freedom
43.
glutSpaceballButtonFunc glutSpaceballButtonFunc void (void (* func) (int button, int state));
func The new entry for the function
glutSpaceballButtonFunc has the function to the buttons on the Spaceball. This function is called when the Spaceball input focus (usually when the mouse is inside the window) and the user presses a button on the Spaceball. The button parameter will be the button number (starting at one). The number of buttons available may be determined glutDeviceGet (GLUT_NUM_SPACEBALL_BUTTO NS). The state is GLUT_UP or GLUT_DOWN indicating if the button is being released or down respectively.
Note: The Spaceball is an input device with 6 degrees of freedom
44.
glutButtonBoxFunc
glutButtonBoxFunc void (void (* func) (int button, int state));
glutButtonBoxFunc
places the callback button dial and button box for the current window. The button callback dial and button box for a window is called when the window has a marked entry box and button (usually when the mouse is within the window) and the user generates pressure input button dial and button box. The button parameter is the number of button (starting with one). The number of button and button may be marked with glutDeviceGet dterminado (GLUT_NUM_BUTTON_BOX_BUTTONS). The state is GLUT_UP or GLUT_DOWN, which indicates whether the callback was due to pressure or lack of such, respectively. Func refers to the callback function to execute.
45.
glutDialsFunc
glutDialsFunc void (void (* func) (int dial, int value));
glutDialsFunc
places the callback of the button marked box and marked for the current window. The callback of the button marked box and marked for a window is usually made when the window has a dial and button box with an input focus (normally, when the mouse is within the window) and change the user generates dial marked box and button. The dial parameter will be dialed number (starting). The number of marked button box and brands available can be determined with glutDeviceGet (GLUT_NUM_DIALS). The value measures the absolute rotation in degrees. The dial settings do not turn with each full rotation, but continue to accumulate degrees (until the int dial overflow value). Func refers to the callback function to execute.
46.
glutTabletMotionFunc
glutTabletMotionFunc void (void (* func) (int x, int y));
glutTabletMotionFunc
places the tablet motion callback for the current window. The motion callback for a window tablet runs when the window has tablet input focus (when the mouse is inside the window) and the user generates the motion of a tablet. X and y callback parameters indicate the absolute position of the "puck" of the tablet in the tablet. The callback parameters are normalized in the range from 0 to 2000 inclusive. Func refers to the callback function to execute.
47.
glutTabletButtonFunc
glutTabletButtonFunc void (void (* func) (int button, int state, int x, int y));
glutTabletButtonFunc
place the tablet button callback for the current window. The tablet button callback is called when the window has tablet input focus and user-generated entries per tablet button press. The parameter button is the button number (starting with one). The number of available tablet buttons can be determined with glutDeviceGet (GLUT_NUM_TABLET_BUTTONS). The state will GLUT_UP or GLUT_DOWN, indicating whether the callback occurs due to a release or pressure, respectively. X and y callback parameters indicate the window relative coordinates when the tablet button is changed. Func refers to the callback function to execute.
48.
glutMenuStatusFunc
glutMenuStatusFunc void (void (* func) (int status, int x, int y));
glutMenuStateFunc void (void (* func) (int status));
glutMenuStatusFunc
callback state places the global menu for a program GLUT can determine when a menu is in use or not. When the callback of the state of a menu is registered, will be called with the value of GLUT_MENU_IN_USE for its value parameter when pop-up menus are being used by the user, and then callback will be called with the value for its parameter GLUT_MENU_NOT_IN_USE state when the pop-up menus are not being used. X and y parameters indicate the location in window coordinates the button press that caused the menu was in use or the location where the menu was released (may be out of the window). The parameter function. Name the callback function. Other callbacks continue to operate (except for mouse motion callbacks) when the pop-up menus are in use for the menu status callback allows a program to suspend the animation or other tasks when menus are in use. Unmapping menus or a menu cascading pop-up calls do not generate initial menu state. There is only one menu status callback for GLUT.
glutMenuStateFunc is a simplified function of the above: it does not receive parameters coordinates x and y.
49.
glutIdleFunc
glutIdleFunc void (void (* func) (void));
glutIdleFunc
places the global idle callback to be func so that a GLUT program can perform a continuous process of animation when the window system events are not being received. If enabled, the idle callback is called when no events have been continuously received. The callback routine has no parameters. The current window and current menu will not be changed before the idle callback. Programs with multiple windows or menus should explicitly set the window and / or the current menu and should not rely on your own current.
50.
glutTimerFunc
glutTimerFunc void (unsigned int msecs, void (* func) (int value), value)
glutTimerFunc recorded time callback func to be executed in at least msecs milliseconds. The parameter value for the callback time will be the value parameter to glutTimerFunc. Multiple callbacks while at the same time or at different times can be recorded simultaneously.
51.
glutSetColor
glutSetColor void (int cell, network GLfloat, GLfloat green, GLfloat blue);
Place index colormap cell color to the color map software for the current window for the layer in use with the color specified by red, green and blue (red, green and blue, whose ranks range from 0.0 to 1.0). The layer in use to the current window should be a color index window. Cell must be zero or greater and less of the total number of color map entries for the window. If the color map in use layer was copied by a reference, a call to force the duplication glutSetColor colormap.
52. GLfloat
glutGetColor glutGetColor (int cell, int component);
glutGetColor obtains components red, green or blue for a color map entry index colors for the color given logical map of the window. The current window must be a window color index. Cell must be zero or greater and less than the total number of color map entries for the window. For valid color indices, the value returned is a floating point value between 0.0 and 1.0. glutGetColor return 0 if the color index specified is an overlay transparent index, less than zero or greater than or equal to the value returned by glutGet (GLUT_WINDOW_COLORMAP_SIZE), ie whether the color index is transparent or is outside the range of indices valid color.
53.
glutCopyColormap
glutCopyColormap void (int win);
glutCopyColormap copy (slowly if possible, to promote file sharing) the logical colormap of a specified window to the layer in use of the window. The copy will be the plane normal to the plane normal to overlay or overlay (never through different layers). Once the color map has been copied, avoid placing cells in glutSetColor color map, as this will force a current copy of the colormap if it was previously copied by reference. glutCopyColormap should only be used when both the current window and the window are windows win color index.
54. int
glutGet glutGet (GLenum state);
glutGet get a simple GLUT state represented by integers. The state parameter determines what kind of state will return. The state-building window returns to the layer in use. GLUT state names beginning with GLUT_WINDOW_ return the status for the current window. GLUT state names beginning with GLUT_MENU_ return the status for the current menu. Other GLUT state names return global state. Asking a state for a name invalid GLUT state returns a negative one.
55. int
glutLayerGet glutLayerGet (GLenum info);
glutLayerGet obtained GLUT layer information for the current window represented by integers. The info parameter determines what type of layer information must be returned.
56. int
glutDeviceGet glutDeviceGet (GLenum info);
glutDeviceGet get GLUT device information represented by integers. The info parameter determines what type of device information is to be repaid. The device information request for an invalid GLUT device information returns a negative one.
57.
glutGetModifiers glutGetModifiers
int (void);
glutGetModifiers returns the status of modifier keys at the time in which an input event for the keyboard or mouse is generated special. This routine can only be called while operating the keyboard, special or the mouse. Window system is allowed to intercept modifier keys defined for the window system or mouse buttons, in which case, no GLUT callback will be generated no. This intercept is independent of the use of glutGetModifiers.
58.
glutExtensionSupported glutExtensionSupported
int (char * extension);
glutExtensionSupported
helps determine easily whether a given OpenGL extension is supported or not. The extension parameter query names the extension. The supported extensions can also be determined with glGetString (GL_EXTENSIONS), but recognizes the parking glutExtensionSupported correct the returned string.
glutExtensionSupported returns a non-zero if the extension is supported and zero if not.
must have a valid current window glutExtensionSupported call. GlutExtensionSupported
returns information only supported OpenGL extensions. This means that the window system dependent extensions (for example, GLX extensions) are not reported in glutExtensionSupported.
59.
glutBitmapCharacter
Render a character using OpenGL. Allows you to display a character on the screen with a font that is assigned.
glutBitmapCharacter void (void * font, int character);
Source Type font for the character to be used
character Character to render.
glutBitmapCharacter Sources available are:
GLUT_BITMAP_8_BY_13
-misc-fixed-medium-r-normal - 13-120-75-75-C-80-iso8859-1 GLUT_BITMAP_9_BY_15
-misc-fixed-medium-r-normal - 15-140-75-75-C-90-iso8859-1
GLUT_BITMAP_TIMES_ROMAN_10
-adobe-times-medium-r-normal - 10-100-75 -75-p-54-iso8859-1
GLUT_BITMAP_TIMES_ROMAN_24
-adobe-times-medium-r-normal - 24-240-75-75-p-124-iso8859-1
GLUT_BITMAP_HELVETICA_10
-adobe-helvetica-medium- r-normal - 10-100-75-75-p-56-iso8859-1
GLUT_BITMAP_HELVETICA_12
-adobe-helvetica-medium-r-normal - 12-120-75-75-p-67-iso8859-1 GLUT_BITMAP_HELVETICA_18
-adobe-helvetica-medium-r-normal - 18-180-75-75-p-98-iso8859-1
representation of a character that does not exist has no effect.
60.
glutBitmapWidth Returns the width of a character in pixels. Int
glutBitmapWidth (GLUTbitmapFont font, int character)
Source Type font for the character to be used
character Character to return width.
While the width of the characters in a font may vary, the characteristics of the maximum height of a particular font are fixed.
61.
glutStrokeCharacter
Character Renders a Stroke (Character type of hands)
glutStrokeCharacter void (void * font, int character);
Source
font to use
character Character to render.
Sources available for this function are:
GLUT_STROKE_ROMAN Simple Roman
space provided. The maximum height of the characters in this font is 119.05 units. Simple Roman
GLUT_STROKE_MONO_ROMAN
monospace. The maximum height of the characters in this font is 119.05 units. Each character is 104.76 units wide.
62.
glutStrokeWidth Returns the width of a stroke character in pixels. Int
glutStrokeWidth (GLUTstrokeFont font, int character) Source
font to use
character Character to return width.
While the width of the characters in a font may vary, the characteristics of the maximum height of a particular font are fixed.
63. glutSolidSphere, glutWireSphere
Renders a solid sphere or type of connection lines, respectively. Void
glutSolidSphere (GLdouble radius, Glint slices, Glint stacks);
glutWireSphere void (GLdouble radius, Glint slices, Glint stacks);
radius of the sphere
Radio
Number of subdivisions slices around the Z axis (similar to lines length)
Number of subdivisions
stacks along the Z axis (similar to lines of latitude)
64. glutSolidCube, glutWireCube
Renders a solid cube (glutSolidCube) or type of connection lines (glutWireCube) respectively. Void
glutSolidCube (GLdouble size);
glutWireCube void (GLdouble size);
The cube is centered on the origin of the coordinates of the model to the sides of length size.
65. glutSolidCone, glutWireCone
Renders a solid cone (glutSolidCone) or type of connection lines (glutWireCone) respectively. Void
glutSolidCone (GLdouble base, GLdouble height, Glint slices, Glint stacks);
glutWireCone void (GLdouble base, GLdouble height, Glint slices, Glint stacks);
base
The radius of the base of the cone height
The
high cone slices
Number of subdivisions around the Z axis stacks
subdivisions Number along the Z axis
66. glutSolidTorus, glutWireTorus
Renders a solid donut (glutSolidTorus) or type of connection lines (glutWireTorus) respectively. Void
glutSolidTorus (innerRadius GLdouble, GLdouble outerRadius, Glint nside, Glint rings);
glutWireTorus void (innerRadius GLdouble, GLdouble outerRadius, Glint nside, Glint rings);
Radio
innerRadius internal donor. External Radio
outerRadius the insides
donates
Number of sides for each radial section rings
radial division number
donut donut is centered on the origin of coordinates whose axes are modeled aligned with the axis Z.
67. glutSolidDodecahedron, glutWireDodecahedron
Renders a dodecahedron (twelve sides) solid (glutSolidDodecahedron) or type of connection lines (glutWireDodecahedron) respectively.
glutSolidDodecahedron void (void);
glutWireDodecahedron void (void);
The image is centered at the origin of the coordinates of the model with a radius of 3 ^ 1 / 3.
68. glutSolidOctahedron, glutWireOctahedron
Renders an octahedron (eight sides), solid (glutSolidOctahedron) or type of connection lines (glutWireDoOctahedron) respectively.
glutSolidOctahedron void (void);
glutWireOctahedron void (void);
The image is centered at the origin of the coordinates of the model with a radius of 1.
69. glutSolidTetrahedron, glutWireTetrahedron
Renders a tetrahedron (four sides), solid (glutSolidTetrahedron) or type of connection lines (glutWireTetrahedron) respectively.
glutSolidTetrahedron void (void);
glutWireTetrahedron void (void);
The image is centered at the origin of the coordinates of the model with a radius of 3 ^ 1 / 3.
70. glutSolidIcosahedron, glutWireIcosahedron
Renders a icosahedron (twenty sides), solid (glutSolidIcosahedron) or type of connection lines (glutWireDoIcosahedron) respectively.
glutSolidIcosahedron void (void);
glutWireIcosahedron void (void);
The image is centered at the origin of the coordinates of the model with a radius of 1. 11.9
glutSolidTeapot, glutWireTeapot
Renders a teapot-shaped figure in either solid (glutSolidTeapot) or type of connection lines (glutWireTeapot). Void
glutSolidTeapot (GLdouble size);
glutWireTeapot void (GLdouble size);
size Relative size of the Teapot
Both the coordinates of the surface normal and texture are generated. The teapot is generated with OpenGL evaluators.
0 comments:
Post a Comment