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 Operates on the accumulation buffer.
glAddSwapHintRectWIN Specifies a set of rectangles that are to be copied by SwapBuffers.
glAlphaFunc Enables your application to set the alpha test function.
glAreTexturesResident Determines whether specified texture objects are resident in texture memory.
glArrayElement Specifies the array elements used to render a vertex.
glBegin, glEnd Delimit the vertices of a primitive or a group of like primitives.
glBindTexture Enables the creation of a named texture that is bound to a texture target.
glBitmap Draws a bitmap.
glBlendFunc Specifies pixel arithmetic.
glCallList Executes a display list.
glCallLists Executes a list of display lists.
glClear Clears buffers to preset values.
glClearAccum Specifies the clear values for the accumulation buffer.
glClearColor Specifies clear values for the color buffers.
glClearDepth Specifies the clear value for the depth buffer.
glClearIndex Specifies the clear value for the color-index buffers.
glClearStencil Specifies the clear value for the stencil buffer.
glClipPlane Specifies a plane against which all geometry is clipped.
glColor functions Set the current color.
glColorMask Enables and disables writing of frame-buffer color components.
glColorMaterial Causes a material color to track the current color.
glColorPointer Defines an array of colors.
glColorTableEXT Specifies the format and size of a palette for targeted paletted textures.
glColorSubTableEXT Specifies a portion of the targeted texture's palette to be replaced.
glCopyPixels Copies pixels in the framebuffer.
glCopyTexImage1D Copies pixels from the framebuffer into a one-dimensional texture image.
glCopyTexImage2D Copies pixels from the framebuffer into a two-dimensional texture image.
glCopyTexSubImage1D Copies a sub-image of a one-dimensional texture image from the framebuffer.
glCopyTexSubImage2D Copies a sub-image of a two-dimensional texture image from the framebuffer.
glCullFace Specifies whether front- or back-facing facets can be culled.
glDeleteLists Deletes a contiguous group of display lists.
glDeleteTextures Deletes named textures.
glDepthFunc Specifies the value used for depth-buffer comparisons.
glDepthMask Enables or disables writing into the depth buffer.
glDepthRange Specifies the mapping of z values from normalized device coordinates to window coordinates.
glDrawArrays Specifies multiple primitives to render.
glDrawBuffer Specifies which color buffers are to be drawn into.
glDrawElements Renders primitives from array data.
glDrawPixels Writes a block of pixels to the framebuffer.
glEdgeFlag functions Define an array of edge flags.
glEdgeFlagPointer Defines an array of edge flags.
glEnable, glDisable Enables or disables OpenGL capabilities.
glEnableClientState, glDisableClientState Enables and disables arrays, respectively.
glEvalCoord functions Evaluate enabled one- and two-dimensional maps.
glEvalMesh functions Compute a one- or two-dimensional grid of points or lines.
glEvalPoint functions Generate and evaluate a single point in a mesh.
glFeedbackBuffer Controls feedback mode.
glFinish Blocks until all OpenGL execution is complete.
glFlush Forces execution of OpenGL functions in finite time.
glFog functions Specify fog parameters.
glFrontFace Defines front- and back-facing polygons.
glFrustum Multiplies the current matrix by a perspective matrix.
glGenLists Generates a contiguous set of empty display lists.
glGenTextures Generates texture names.
glGetBooleanv Retrieves the value or values of a selected Boolean parameter.
glGetClipPlane Retrieves the coefficients of the specified clipping plane.
glGetColorTableEXT Retrieves the color table data of the current targeted texture palette.
glGetColorTableParameterfvEXT, glGetColorTableParameterivEXT Retrieves palette parameters from color tables.
glGetDoublev Retrieves the value or values of a selected double parameter.
glGetError Retrieves error information.
glGetFloatv Retrieves the value or values of a selected float parameter.
glGetIntegerv Retrieves the value or values of a selected int parameter.
glGetLight functions Retrieve light source parameter values.
glGetMap functions Retrieve evaluator parameters.
glGetMaterial functions Retrieve material parameters.
glGetPixelMap functions Retrieve the specified pixel map.
glGetPointerv Retrieves the address of a vertex data array.
glGetPolygonStipple Retrieves the polygon stipple pattern.
glGetString Retrieves a string describing the current OpenGL connection.
glGetTexEnv functions Retrieve texture environment parameters.
glGetTexGen functions Retrieve texture coordinate generation parameters.
glGetTexImage Retrieves a texture image.
glGetTexLevelParameter functions Retrieve texture parameter values for a specific level of detail.
glGetTexParameter functions Retrieve texture parameter values.
glHint Specifies implementation-specific hints.
glIndex functions Set the current color index.
glIndexMask Controls the writing of individual bits in the color-index buffers.
glIndexPointer Defines an array of color indexes.
glInitNames Initializes the name stack.
glInterleavedArrays Simultaneously specifies and enables several interleaved arrays in a larger aggregate array.
glIsEnabled Tests whether a capability is enabled.
glIsList Tests for display list existence.
glIsTexture Determines whether a name corresponds to a texture.
glLight functions Set light-source parameters.
glLightModel functions Set the lighting model parameters.
glLineStipple Specifies the line stipple pattern.
glLineWidth Specifies the width of rasterized lines.
glListBase Sets the display list base for glCallLists.
glLoadIdentity Replaces the current matrix with the identity matrix.
glLoadMatrix functions Replace the current matrix with an arbitrary matrix.
glLoadName Loads a name onto the name stack.
glLogicOp Specifies a logical pixel operation for color index rendering.
glMap1 functions Define a one-dimensional evaluator.
glMap2 functions Define a two-dimensional evaluator.
glMapGrid functions Define a one- or two-dimensional mesh.
glMaterial functions Specify material parameters for the lighting model.
glMatrixMode Specifies which matrix is the current matrix.
glMultMatrix functions Multiply the current matrix by an arbitrary matrix.
glNewList, glEndList Create or replace a display list.
glNormal functions Set the current normal vector.
glNormalPointer Defines an array of normals.
glOrtho Multiplies the current matrix by an orthographic matrix.
glPassThrough Places a marker in the feedback buffer.
glPixelMap functions Set up pixel transfer maps.
glPixelStore functions Set pixel storage modes.
glPixelTransfer functions Set pixel transfer modes.
glPixelZoom Specifies the pixel zoom factors.
glPointSize Specifies the diameter of rasterized points.
glPolygonMode Selects a polygon rasterization mode.
glPolygonOffset Sets the scale and units OpenGL uses to calculate depth values.
glPolygonStipple Sets the polygon stippling pattern.
glPrioritizeTextures Sets the residence priority of textures.
glPushAttrib, glPopAttrib Push and pop the attribute stack.
glPushClientAttrib, glPopClientAttrib Save and restore groups of client-state variables on the client-attribute stack.
glPushMatrix, glPopMatrix Push and pop the current matrix stack, respectively.
glPushName, glPopName Push and pop the name stack, respectively.
glRasterPos functions Specify the raster position for pixel operations.
glReadBuffer Slects a color buffer source for pixels.
glReadPixels Reads a block of pixels from the framebuffer.
glRect functions Draw a rectangle.
glRenderMode Sets the rasterization mode.
glRotate functions Multiply the current matrix by a rotation matrix.
glScale functions Multiply the current matrix by a general scaling matrix.
glScissor Defines the scissor box.
glSelectBuffer Establishes a buffer for selection mode values.
glShadeModel Selects flat or smooth shading.
glStencilFunc Sets the function and reference value for stencil testing.
glStencilMask Controls the writing of individual bits in the stencil planes.
glStencilOp Sets the stencil test actions.
glTexCoord functions Set the current texture coordinates.
glTexCoordPointer Defines an array of texture coordinates.
glTexEnv functions Set texture environment parameters.
glTexGen functions Control the generation of texture coordinates.
glTexImage1D Specifies a one-dimensional texture image.
glTexImage2D Specifies a two-dimensional texture image.
glTexParameter functions Set texture parameters.
glTexSubImage1D Specifies a portion of an existing one-dimensional texture image. You cannot define a new texture with this function.
glTexSubImage2D Specifies a portion of an existing two-dimensional texture image. You cannot define a new texture with this function.
glTranslate functions Multiply the current matrix by a translation matrix.
glVertex These functions specify a vertex.
glVertexPointer Defines an array of vertex data.
glViewport Sets the viewport.