Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

glxcreatepixmap(3g) [centos man page]

GLXCREATEPIXMAP(3G)						   OpenGL Manual					       GLXCREATEPIXMAP(3G)

NAME
glXCreatePixmap - create an off-screen rendering area C SPECIFICATION
GLXPixmap glXCreatePixmap(Display * dpy, GLXFBConfig config, Pixmap pixmap, const int * attrib_list); PARAMETERS
dpy Specifies the connection to the X server. config Specifies a GLXFBConfig structure with the desired attributes for the window. pixmap Specifies the X pixmap to be used as the rendering area. attrib_list Currently unused. This must be set to NULL or be an empty list (i.e., one in which the first element is None). DESCRIPTION
glXCreatePixmap creates an off-screen rendering area and returns its XID. Any GLX rendering context that was created with respect to config can be used to render into this window. Use glXMakeCurrent() to associate the rendering area with a GLX rendering context. NOTES
glXCreatePixmap is available only if the GLX version is 1.3 or greater. If the GLX version is 1.1 or 1.0, the GL version must be 1.0. If the GLX version is 1.2, then the GL version must be 1.1. If the GLX version is 1.3, then the GL version must be 1.2. ERRORS
BadMatch is generated if pixmap was not created with a visual that corresponds to config. BadMatch is generated if config does not support rendering to windows (e.g., GLX_DRAWABLE_TYPE does not contain GLX_WINDOW_BIT). BadWindow is generated if pixmap is not a valid window XID. BadAlloc is generated if there is already a GLXFBConfig associated with pixmap. BadAlloc is generated if the X server cannot allocate a new GLX window. GLXBadFBConfig is generated if config is not a valid GLXFBConfig. SEE ALSO
glXChooseFBConfig(), glXCreateGLXPixmap(), glXDestroyWindow(), glXMakeContextCurrent() COPYRIGHT
Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. AUTHORS
opengl.org opengl.org 06/10/2014 GLXCREATEPIXMAP(3G)

Check Out this Related Man Page

GLXCREATEGLXPIXMAP()													      GLXCREATEGLXPIXMAP()

NAME
glXCreateGLXPixmap - create an off-screen GLX rendering area C SPECIFICATION
GLXPixmap glXCreateGLXPixmap( Display *dpy, XVisualInfo *vis, Pixmap pixmap ) delim $$ PARAMETERS
dpy Specifies the connection to the X server. vis Specifies the visual that defines the structure of the rendering area. It is a pointer to an XVisualInfo structure, not a visual ID or a pointer to a Visual. pixmap Specifies the X pixmap that will be used as the front left color buffer of the off-screen rendering area. DESCRIPTION
glXCreateGLXPixmap creates an off-screen rendering area and returns its XID. Any GLX rendering context that was created with respect to vis can be used to render into this off-screen area. Use glXMakeCurrent to associate the rendering area with a GLX rendering context. The X pixmap identified by pixmap is used as the front left buffer of the resulting off-screen rendering area. All other buffers specified by vis, including color buffers other than the front left buffer, are created without externally visible names. GLX pixmaps with double- buffering are supported. However, glXSwapBuffers is ignored by these pixmaps. Some implementations may not support GLX pixmaps with direct rendering contexts. NOTES
XVisualInfo is defined in Xutil.h. It is a structure that includes visual, visualID, screen, and depth elements. ERRORS
BadMatch is generated if the depth of pixmap does not match the depth value reported by core X11 for vis, or if pixmap was not created with respect to the same screen as vis. BadValue is generated if vis is not a valid XVisualInfo pointer (for example, if a particular GLX implementation does not support this vis- ual). BadPixmap is generated if pixmap is not a valid pixmap. BadAlloc is generated if the server cannot allocate the GLX pixmap. SEE ALSO
glXCreateContext, glXIsDirect, glXMakeCurrent GLXCREATEGLXPIXMAP()
Man Page