glXQueryContextInfoEXT(3G)
glXQueryContextInfoEXT - returns information about a GLX rendering context
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME glXQueryContextInfoEXT - returns information about a GLX rendering context C SPECIFICATION int glXQueryContextInfoEXT( Display *dpy, GLXContext ctx, int attribute, int *value ) PARAMETERS dpy Specifies the connection to the X server. ctx Specifies a GLX rendering context. attribute Specifies the context attribute to be returned. value Returns the requested value. DESCRIPTION glXQueryContextInfoEXT returns in value the value of attribute for ctx; it may cause a round trip to the server. attribute is one of the following: GLX_SHARE_CONTEXT_EXT XID of the share list context that was specified when ctx was created by calling glXCreateContext or NULL if ctx is not part of a share list. GLX_VISUAL_ID_EXT Visual i.d. for XVisualInfo structure that is associated with ctx. GLX_SCREEN_EXT Screen number for ctx. GLX_FBCONFIG_ID_SGIX XID of GLXFBConfigSGIX that is associated with ctx. glXQueryContextInfoEXT returns an error code if it fails for any reason; otherwise, zero is returned. NOTES glXQueryContextInfoEXT is part of the EXT_import_context extension. GLX_FBCONFIG_ID_SGIX is not a valid attribute unless the SGIX_fbconfig extension is supported. ERRORS glXQueryContextInfoEXT returns GLX_BAD_ATTRIBUTE if attribute is invalid. A GLXBadContext error is generated if ctx is not a valid rendering context. SEE ALSO glXCreateContext