Creates an off-screen GLX rendering area.
OpenGL C bindings library: libGL.a
GLXPixmap glXCreatePixmap(Display *dpy,
GLXFBConfig config,
Pixmap Pixmap,
const int *AttributeList)
The glXCreatePixmap subroutine creates an off-screen rendering area and returns its XID. Any GLX rendering context that was created with respect to the config parameter can be used to render into this off-screen area. Use the glXMakeContextCurrent 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 config 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.
BadAlloc | Is generated if the server cannot allocate the GLX pixmap. |
BadMatch | Is generated if one or more of the following is detected: the depth of Pixmap does not match the GLX_BUFFER_SIZE value of config or Pixmap was not created with respect to the same screen as config. |
BadPixmap | Is generated if Pixmap is not a valid pixmap. |
BadFBConfig | Is generated if configis not a valid GLX FBConfig or if the GLX FBConfig does not support pixmap rendering. |
/usr/include/GL/gl.h | Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL. |
/usr/include/GL/glx.h | Contains C language constants, variable type definitions, and ANSI function prototypes for GLX. |
The glXCreateNewContext subroutine, glXIsDirect subroutine, glXMakeContextCurrent subroutine.
OpenGL in the AIXwindows (GLX) Environment.