1GLXCREATEGLXPIXMAP(3G) OpenGL Manual GLXCREATEGLXPIXMAP(3G)
2
3
4
6 glXCreateGLXPixmap - create an off-screen GLX rendering area
7
9 GLXPixmap glXCreateGLXPixmap(Display * dpy, XVisualInfo * vis,
10 Pixmap pixmap);
11
13 dpy
14 Specifies the connection to the X server.
15
16 vis
17 Specifies the visual that defines the structure of the rendering
18 area. It is a pointer to an XVisualInfo structure, not a visual ID
19 or a pointer to a Visual.
20
21 pixmap
22 Specifies the X pixmap that will be used as the front left color
23 buffer of the off-screen rendering area.
24
26 glXCreateGLXPixmap creates an off-screen rendering area and returns its
27 XID. Any GLX rendering context that was created with respect to vis can
28 be used to render into this off-screen area. Use glXMakeCurrent() to
29 associate the rendering area with a GLX rendering context.
30
31 The X pixmap identified by pixmap is used as the front left buffer of
32 the resulting off-screen rendering area. All other buffers specified by
33 vis, including color buffers other than the front left buffer, are
34 created without externally visible names. GLX pixmaps with
35 double-buffering are supported. However, glXSwapBuffers() is ignored by
36 these pixmaps.
37
38 Some implementations may not support GLX pixmaps with direct rendering
39 contexts.
40
42 XVisualInfo is defined in Xutil.h. It is a structure that includes
43 visual, visualID, screen, and depth elements.
44
46 BadMatch is generated if the depth of pixmap does not match the depth
47 value reported by core X11 for vis, or if pixmap was not created with
48 respect to the same screen as vis.
49
50 BadValue is generated if vis is not a valid XVisualInfo pointer (for
51 example, if a particular GLX implementation does not support this
52 visual).
53
54 BadPixmap is generated if pixmap is not a valid pixmap.
55
56 BadAlloc is generated if the server cannot allocate the GLX pixmap.
57
59 glXCreateContext(), glXCreatePixmap(), glXDestroyGLXPixmap(),
60 glXIsDirect(), glXMakeCurrent()
61
63 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
64 under the SGI Free Software B License. For details, see
65 http://oss.sgi.com/projects/FreeB/.
66
68 opengl.org
69
70
71
72opengl.org 07/13/2018 GLXCREATEGLXPIXMAP(3G)