glXQueryDrawable(3G)

glXQueryDrawable - returns an attribute associated with a GLX drawable

As shipped in IRIX 6.5.19. Added in IRIX 6.5.15.

NAME
     glXQueryDrawable - returns an attribute associated with a GLX drawable


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 GLX drawable to be queried.

     attribute  Specifies the attribute to be returned.

     value      Returns the requested value.


DESCRIPTION
     glXQueryDrawable sets value to the attribute value for draw.

     attribute is one of the following:

     GLX_WIDTH             Width of draw.

     GLX_HEIGHT            Height of draw.

     GLX_PRESERVED_CONTENTS
                           True if the contents of GLXPbuffer are preserved
                           when a resource conflict occurs; False otherwise.

     GLX_LARGEST_PBUFFER   Set when the GLX pixel buffer is created by calling
                           glXCreatePbuffer.  When False, glXCreatePbuffer
                           fails if it cannot allocate a GLX pixel buffer of
                           size width by height.  When True, a pixel buffer
                           with the largest width and height possible (but not
                           larger than the values specified) is created when
                           the allocation of the buffer would otherwise fail.

     GLX_FBCONFIG_ID       XID for draw.

     If draw is a GLXWindow or GLXPixmap and attribute is set to
                           GLX_PRESERVED_CONTENTS or GLX_LARGEST_PBUFFER, the
                           contents of value are undefined. If attribute is
                           not one of the attributes listed above, the
                           contents of value are undefined.
ERRORS
     A GLXBadDrawable is generated if draw is not a valid GLXDrawable.

SEE ALSO
     glXCreateWindow, glXCreatePixmap, glXCreatePbuffer, glXGetFBConfigAttrib,
     glXChooseFBConfig