OpenGL

Overview of the OpenGL technology.

The OpenGL technology is not associated with any headers.

For programming guidance for this technology, see:

Functions

 
ChoosePixelFormat

The ChoosePixelFormat function attempts to match an appropriate pixel format supported by a device context to a given pixel format specification.
DescribePixelFormat

The DescribePixelFormat function obtains information about the pixel format identified by iPixelFormat of the device associated with hdc. The function sets the members of the PIXELFORMATDESCRIPTOR structure pointed to by ppfd with that pixel format data.
GetEnhMetaFilePixelFormat

The GetEnhMetaFilePixelFormat function retrieves pixel format information for an enhanced metafile.
GetPixelFormat

The GetPixelFormat function obtains the index of the currently selected pixel format of the specified device context.
SetPixelFormat

The SetPixelFormat function sets the pixel format of the specified device context to the format specified by the iPixelFormat index.
SwapBuffers

The SwapBuffers function exchanges the front and back buffers if the current pixel format for the window referenced by the specified device context includes a back buffer.
wglCopyContext

The wglCopyContext function copies selected groups of rendering states from one OpenGL rendering context to another.
wglCreateContext

The wglCreateContext function creates a new OpenGL rendering context, which is suitable for drawing on the device referenced by hdc. The rendering context has the same pixel format as the device context.
wglCreateLayerContext

The wglCreateLayerContext function creates a new OpenGL rendering context for drawing to a specified layer plane on a device context.
wglDeleteContext

The wglDeleteContext function deletes a specified OpenGL rendering context.
wglDescribeLayerPlane

The wglDescribeLayerPlane function obtains information about the layer planes of a given pixel format.
wglGetCurrentContext

The wglGetCurrentContext function obtains a handle to the current OpenGL rendering context of the calling thread.
wglGetCurrentDC

The wglGetCurrentDC function obtains a handle to the device context that is associated with the current OpenGL rendering context of the calling thread.
wglGetLayerPaletteEntries

Retrieves the palette entries from a given color-index layer plane for a specified device context.
wglGetProcAddress

The wglGetProcAddress function returns the address of an OpenGL extension function for use with the current OpenGL rendering context.
wglMakeCurrent

The wglMakeCurrent function makes a specified OpenGL rendering context the calling thread's current rendering context.
wglRealizeLayerPalette

The wglRealizeLayerPalette function maps palette entries from a given color-index layer plane into the physical palette or initializes the palette of an RGBA layer plane.
wglSetLayerPaletteEntries

Sets the palette entries in a given color-index layer plane for a specified device context.
wglShareLists

The wglShareLists function enables multiple OpenGL rendering contexts to share a single display-list space.
wglSwapLayerBuffers

The wglSwapLayerBuffers function swaps the front and back buffers in the overlay, underlay, and main planes of the window referenced by a specified device context.
wglUseFontBitmapsA

The wglUseFontBitmaps function creates a set of bitmap display lists for use in the current OpenGL rendering context. (ANSI)
wglUseFontBitmapsW

The wglUseFontBitmaps function creates a set of bitmap display lists for use in the current OpenGL rendering context. (Unicode)
wglUseFontOutlinesA

The wglUseFontOutlines function creates a set of display lists, one for each glyph of the currently selected outline font of a device context, for use with the current rendering context. (ANSI)
wglUseFontOutlinesW

The wglUseFontOutlines function creates a set of display lists, one for each glyph of the currently selected outline font of a device context, for use with the current rendering context. (Unicode)

Structures

 
GLYPHMETRICSFLOAT

The GLYPHMETRICSFLOAT structure contains information about the placement and orientation of a glyph in a character cell.
LAYERPLANEDESCRIPTOR

The LAYERPLANEDESCRIPTOR structure describes the pixel format of a drawing surface.
PIXELFORMATDESCRIPTOR

The PIXELFORMATDESCRIPTOR structure describes the pixel format of a drawing surface.
POINTFLOAT

The POINTFLOAT structure contains the x and y coordinates of a point.