OpenGL
GL Functions
The OpenGL commands, in alphabetical order are presented here. Each reference page describes one or more function. See also GLU Functions.
Function | Description |
---|---|
glAccum | The glAccum function operates on the accumulation buffer. |
glAddSwapHintRectWIN | The glAddSwapHintRectWIN function specifies a set of rectangles that are to be copied by SwapBuffers. |
glAlphaFunc | The glAlphaFunc function enables your application to set the alpha test function. |
glAreTexturesResident | The glAreTexturesResident function determines whether specified texture objects are resident in texture memory. |
glArrayElement | The glArrayElement function specifies the array elements used to render a vertex. |
glBegin, glEnd | The glBegin and glEnd functions delimit the vertices of a primitive or a group of like primitives. |
glBindTexture | The glBindTexture function enables the creation of a named texture that is bound to a texture target. |
glBitmap | The glBitmap function draws a bitmap. |
glBlendFunc | The glBlendFunc function specifies pixel arithmetic. |
glCallList | The glCallList function executes a display list. |
glCallLists | The glCallLists function executes a list of display lists. |
glClear | The glClear function clears buffers to preset values. |
glClearAccum | The glClearAccum function specifies the clear values for the accumulation buffer. |
glClearColor | The glClearColor function specifies clear values for the color buffers. |
glClearDepth | The glClearDepth function specifies the clear value for the depth buffer. |
glClearIndex | The glClearIndex function specifies the clear value for the color-index buffers. |
glClearStencil | The glClearStencil function specifies the clear value for the stencil buffer. |
glClipPlane | The glClipPlane function specifies a plane against which all geometry is clipped. |
glColor | These functions set the current color. |
glColorMask | The glColorMask function enables and disables writing of frame-buffer color components. |
glColorMaterial | The glColorMaterial function causes a material color to track the current color. |
glColorPointer | The glColorPointer function defines an array of colors. |
glColorTableEXT | The glColorTableEXT function specifies the format and size of a palette for targeted paletted textures. |
glColorSubTableEXT | The glColorSubTableEXT function specifies a portion of the targeted texture's palette to be replaced. |
glCopyPixels | The glCopyPixels function copies pixels in the framebuffer. |
glCopyTexImage1D | The glCopyTexImage1D function copies pixels from the framebuffer into a one-dimensional texture image. |
glCopyTexImage2D | The glCopyTexImage2D function copies pixels from the framebuffer into a two-dimensional texture image. |
glCopyTexSubImage1D | The glCopyTexSubImage1D function copies a sub-image of a one-dimensional texture image from the framebuffer. |
glCopyTexSubImage2D | The glCopyTexSubImage2D function copies a sub-image of a two-dimensional texture image from the framebuffer. |
glCullFace | The glCullFace function specifies whether front- or back-facing facets can be culled. |
glDeleteLists | The glDeleteLists function deletes a contiguous group of display lists. |
glDeleteTextures | The glDeleteTextures function deletes named textures. |
glDepthFunc | The glDepthFunc function specifies the value used for depth-buffer comparisons. |
glDepthMask | The glDepthMask function enables or disables writing into the depth buffer. |
glDepthRange | The glDepthRange function specifies the mapping of z values from normalized device coordinates to window coordinates. |
glDrawArrays | The glDrawArrays function specifies multiple primitives to render. |
glDrawBuffer | The glDrawBuffer function specifies which color buffers are to be drawn into. |
glDrawElements | The glDrawElements function renders primitives from array data. |
glDrawPixels | The glDrawPixels function writes a block of pixels to the framebuffer. |
glEdgeFlag | The glEdgeFlagPointer function defines an array of edge flags. |
glEdgeFlagPointer | The glEdgeFlagPointer function defines an array of edge flags. |
glEnable, glDisable | The glEnable and glDisable functions enable or disable OpenGL capabilities. |
glEnableClientState, glDisableClientState | The glEnableClientState and glDisableClientState functions enable and disable arrays respectively. |
glEvalCoord | These functions evaluate enabled one- and two-dimensional maps. |
glEvalMesh1, glEvalMesh2 | The glEvalMesh1 and glEvalMesh2 functions compute a one- or two-dimensional grid of points or lines. |
glEvalPoint1, glEvalPoint2 | The glEvalPoint1 and glEvalPoint2 functions generate and evaluate a single point in a mesh. |
glFeedbackBuffer | The glFeedbackBuffer function controls feedback mode. |
glFinish | The glFinish function blocks until all OpenGL execution is complete. |
glFlush | The glFlush function forces execution of OpenGL functions in finite time. |
glFogf, glFogi, glFogfv, glFogiv | These functions specify fog parameters. |
glFrontFace | The glFrontFace function defines front- and back-facing polygons. |
glFrustum | The glFrustum function multiplies the current matrix by a perspective matrix. |
glGenLists | The glGenLists function generates a contiguous set of empty display lists. |
glGenTextures | The glGenTextures function generates texture names. |
glGetBooleanv, glGetDoublev, glGetFloatv, glGetIntegerv | These functions return the value or values of a selected parameter. |
glGetClipPlane | The glGetClipPlane function returns the coefficients of the specified clipping plane. |
glGetColorTableEXT | The glGetColorTableEXT function gets the color table data of the current targeted texture palette. |
glGetColorTableParameterfvEXT, glGetColorTableParameterivEXT | The glGetColorTableParameterfvEXT and glGetColorTableParameterivEXT functions get palette parameters from color tables. |
glGetError | The glGetError function returns error information. |
glGetLightfv, glGetLightiv | The glGetLightfv and glGetLightiv functions return light source parameter values. |
glGetMapdv, glGetMapfv, glGetMapiv | These functions return evaluator parameters. |
glGetMaterialfv, glGetMaterialiv | The glGetMaterialfv and glGetMaterialiv functions return material parameters. |
glGetPixelMapfv, glGetPixelMapuiv, glGetPixelMapusv | These functions return the specified pixel map. |
glGetPointerv | The glGetPointerv function returns the address of a vertex data array. |
glGetPolygonStipple | The glGetPolygonStipple function returns the polygon stipple pattern. |
glGetString | The glGetString function returns a string describing the current OpenGL connection. |
glGetTexEnvfv | The glGetTexEnvfv and glGetTexEnviv functions return texture environment parameters. |
glGetTexGendv, glGetTexGenfv, glGetTexGeniv | These functions return texture coordinate generation parameters. |
glGetTexImage | The glGetTexImage function returns a texture image. |
glGetTexLevelParameterfv, glGetTexLevelParameteriv | The glGetTexLevelParameterfv and glGetTexLevelParameteriv functions return texture parameter values for a specific level of detail. |
glGetTexParameterfv, glGetTexParameteriv | The glGetTexParameterfv and glGetTexParameteriv functions return texture parameter values. |
glHint | The glHint function specifies implementation-specific hints. |
glIndex | These functions set the current color index. |
glIndexMask | The glIndexMask function controls the writing of individual bits in the color-index buffers. |
glIndexPointer | The glIndexPointer function defines an array of color indexes. |
glInitNames | The glInitNames function initializes the name stack. |
glInterleavedArrays | The glInterleavedArrays function simultaneously specifies and enables several interleaved arrays in a larger aggregate array. |
glIsEnabled | The gllsEnabled function tests whether a capability is enabled. |
glIsList | The gllsList function tests for display list existence. |
glIsTexture | The glIsTexture function determines if a name corresponds to a texture. |
glLightf, glLighti, glLightfv, glLightiv | These functions set light-source parameters. |
glLightModelf, glLightModeli, glLightModelfv, glLightModeliv | These functions set the lighting model parameters. |
glLineStipple | The glLineStipple function specifies the line stipple pattern. |
glLineWidth | The glLineWidth function specifies the width of rasterized lines. |
glListBase | The glListBase function sets the display list base for glCallLists. |
glLoadIdentity | The glLoadIdentity function replaces the current matrix with the identity matrix. |
glLoadMatrixd, glLoadMatrixf | The glLoadMatrixd and glLoadMatrixf functions replace the current matrix with an arbitrary matrix. |
glLoadName | The glLoadName function loads a name onto the name stack. |
glLogicOp | The glLogicOp function specifies a logical pixel operation for color index rendering. |
glMap1d, glMap1f | The glMap1d and glMap1f functions define a one-dimensional evaluator. |
glMap2d, glMap2f | The glMap2d and glMap2f functions define a two-dimensional evaluator. |
glMapGrid1d, glMapGrid1f, glMapGrid2d, glMapGrid2f | These functions define a one- or two-dimensional mesh. |
glMaterialf, glMateriali, glMaterialfv, glMaterialiv | These functions specify material parameters for the lighting model. |
glMatrixMode | The glMatrixMode function specifies which matrix is the current matrix. |
glMultMatrixd, glMultMatrixf | The glMultMatrixd and glMultMatrixf functions multiply the current matrix by an arbitrary matrix. |
glNewList, glEndList | The glNewList and glEndList functions create or replace a display list. |
glNormal | These functions set the current normal vector. |
glNormalPointer | The glNormalPointer function defines an array of normals. |
glOrtho | The glOrtho function multiplies the current matrix by an orthographic matrix. |
glPassThrough | The glPassThrough function places a marker in the feedback buffer. |
glPixelMapfv, glPixelMapuiv, glPixelMapusv | These functions set up pixel transfer maps. |
glPixelStoref, glPixelStorei | The glPixelStoref and glPixelStorei functions set pixel storage modes. |
glPixelTransferf, glPixelTransferi | The glPixelTransferf and glPixelTransferi functions set pixel transfer modes. |
glPixelZoom | The glPixelZoom function specifies the pixel zoom factors. |
glPointSize | The glPointSize function specifies the diameter of rasterized points. |
glPolygonMode | The glPolygonMode function selects a polygon rasterization mode. |
glPolygonOffset | The glPolygonOffset function sets the scale and units OpenGL uses to calculate depth values. |
glPolygonStipple | The glPolygonStipple function sets the polygon stippling pattern. |
glPrioritizeTextures | The glPrioritizeTextures function sets the residence priority of textures. |
glPushAttrib, glPopAttrib | The glPushAttrib and glPopAttrib functions push and pop the attribute stack. |
glPushClientAttrib, glPopClientAttrib | The glPushClientAttrib and glPopClientAttrib functions save and restore groups of client-state variables on the client-attribute stack. |
glPushMatrix, glPopMatrix | The glPushMatrix and glPopMatrix functions push and pop the current matrix stack. |
glPushName, glPopName | The glPushName and glPopName functions push and pop the name stack. |
glRasterPos | These functions specify the raster position for pixel operations. |
glReadBuffer | The glReadBuffer function selects a color buffer source for pixels. |
glReadPixels | The glReadPixels function reads a block of pixels from the framebuffer. |
glRectd, glRectf, glRecti, glRects, glRectdv, glRectfv, glRectiv, glRectsv | These functions draw a rectangle. |
glRenderMode | The glRenderMode function sets the rasterization mode. |
glRotated, glRotatef | The glRotated and glRotatef functions multiply the current matrix by a rotation matrix. |
glScaled, glScalef | The glScaled and glScalef functions multiply the current matrix by a general scaling matrix. |
glScissor | The glScissor function defines the scissor box. |
glSelectBuffer | The glSelectBuffer function establishes a buffer for selection mode values. |
glShadeModel | The glShadeModel function selects flat or smooth shading. |
glStencilFunc | The glStencilFunc function sets the function and reference value for stencil testing. |
glStencilMask | The glStencilMask function controls the writing of individual bits in the stencil planes. |
glStencilOp | The glStencilOp function sets the stencil test actions. |
glTexCoord | These functions set the current texture coordinates. |
glTexCoordPointer | The glTexCoordPointer function defines an array of texture coordinates. |
glTexEnvf, glTexEnvi, glTexEnvfv, glTexEnviv | These functions set texture environment parameters. |
glTexGend, glTexGenf, glTexGeni, glTexGendv, glTexGenfv, glTexGeniv | These functions control the generation of texture coordinates. |
glTexImage1D | The glTexImage1D function specifies a one-dimensional texture image. |
glTexImage2D | The glTexImage2D function specifies a two-dimensional texture image. |
glTexParameterf, glTexParameteri, glTexParameterfv, glTexParameteriv | These functions set texture parameters. |
glTexSubImage1D | The glTexSubImage1D function specifies a portion of an existing one-dimensional texture image. You cannot define a new texture with glTexSubImage1D. |
glTexSubImage2D | The glTexSubImage2D function specifies a portion of an existing one-dimensional texture image. You cannot define a new texture with glTexSubImage2D. |
glTranslated, glTranslatef | The glTranslated and glTranslatef functions multiply the current matrix by a translation matrix. |
glVertex | These functions specify a vertex. |
glVertexPointer | The glVertexPointer function defines an array of vertex data. |
glViewport | The glViewport function sets the viewport. |
No comments:
Post a Comment