GLXQUERYDRAWABLE(3GL)GLXQUERYDRAWABLE(3GL)NAME
glXQueryDrawable - return an attribute associated with a GLXDrawable
C SPECIFICATION
void glXQueryDrawable ( Display *dpy,
GLXDrawable draw,
int attribute,
unsigned int *value)
PARAMETERS
dpy Specifies the connection to the X server.
draw Specifies the GLXDrawable.
attribute Specifies attribute value to return.
value Returns the requested value.
DESCRIPTION
glXQueryDrawable returns the attribute of draw. Five attribute are
defined:
GLX_WIDTH
value returns the width of draw
GLX_HEIGHT
value returns height of draw
GLX_PRESERVED_CONTENTS
value returns a boolean value which specifies whether the con‐
tent of draw is preserved or not when draw is lost.
GLX_LARGEST_PBUFFER
value returns a boolean value which specifies wheteher the
largest pbuffer is to be allocated when the allocation of draw
fails.
GLX_FBCONFIG_ID
value returns the i. d. of the GLXFBConfig for draw. To get the
GLXFBConfig for a GLXDrawable, first retrieve the i. d. for the
FBConfig and then call glXChooseFBConfig.
NOTES
glXQueryDrawable is part of the GLX Version 1.3 command set. The func‐
tion is only valid if the connection supports GLX Version 1.3 or later.
ERRORS
GLXBadDrawable is generated if draw is not a valid GLXDrawable.
SEE ALSO
glXChooseFBConfig, glXCreatePbuffer
20 May 01 GLXQUERYDRAWABLE(3GL)