GLXQUERYGLXPBUFFERSGIX(3GL)GLXQUERYGLXPBUFFERSGIX(3GL)NAME
glXQueryGLXPbufferSGIX - return an attribute associated with a GLXP‐
buffer
C SPECIFICATION
void glXQueryGLXPbufferSGIX ( Display *dpy,
GLXPbuffer pbuf,
int attribute,
unsigned int *value)
PARAMETERS
dpy Specifies the connection to the X server.
pbuf Specifies the GLXPbuffer.
attribute Specifies attribute value to return.
value Returns the requested value.
DESCRIPTION
glXQueryGLXPbufferSGIX returns the attribute of <pbuf>. Five attribute
are defined:
GLX_WIDTH_SGIX
<value> returns the width of <pbuf>
GLX_HEIGHT_SGIX
<value> returns height of <pbuf>
GLX_PRESERVED_CONTENTS_SGIX
<value> returns a boolean value which specifies whether the con‐
tent of <pbuf> is preserved or not when <pbuf> is lost.
GLX_LARGEST_PBUFFER_SGIX
<value> returns a boolean value which specifies wheteher the
largest pbuffer is to be allocated when the allocation of <pbuf>
fails.
GLX_FBCONFIG_ID_SGIX
<value> returns the i. d. of the GLXFBConfig for <pbuf>. To get
the GLXFBConfig for a GLXPbuffer, first retrieve the i. d. for
the FBConfig and then call glXChooseFBConfigSGIX.
NOTES
glXQueryGLXPbufferSGIX is part of the GLX extension SGIX_pbuffer, not
part of the core GLX command set. If SGIX_pbuffer is included in the
string returned by glXQueryExtensionsString, extension SGIX_pbuffer is
supported by the connection.
This function is superseded by glXQueryDrawble, which is part of GLX
Version 1.3 command set. glXQueryGLXPbufferSGIX is only supported for
backward compatibility.
ERRORS
GLXBadPbufferSGIX is generated if <pbuf> is not a valid GLXPbuffer.
SEE ALSO
glXChooseFBConfigSGIX, glXCreateGLXPbufferSGIX, glXQueryExtension‐
sString.
23 May 01 GLXQUERYGLXPBUFFERSGIX(3GL)