Creates an off-screen GLX rendering area.
OpenGL C bindings library: libGL.a
GLXPixmap glXCreateGLXPixmap(Display *dpy XVisualInfo *Visual Pixmap Pixmap)
The glXCreateGLXPixmap subroutine creates an off-screen rendering area and returns its XID. Any GLX rendering context that was created with respect to the Visual parameter can be used to render into this off-screen area. Use the glXMakeCurrent subroutine to associate the rendering area with a GLX rendering context.
The X pixmap identified by the Pixmap parameter is used as the front left buffer of the resulting off-screen rendering area. All other buffers specified by the Visual parameter, including color buffers (other than the front left buffer), are created without externally visible names. GLX pixmaps with double-buffering are supported. However, the glXSwapBuffers subroutine is ignored by these pixmaps.
Direct rendering contexts cannot be used to render into GLX pixmaps.
XVisualInfo is defined in the Xutil.h file. It is a structure that includes Visual, VisualID, Screen, and Depth elements.
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
The glXCreateContext subroutine, glXIsDirect subroutine, glXMakeCurrent subroutine.
OpenGL in the AIXwindows (GLX) Environment.