GLXQUERYCONTEXT(3GL)GLXQUERYCONTEXT(3GL)NAME
glXQueryContext - return an attribute associated with a GLXContext
C SPECIFICATION
void glXQueryContex ( Display *dpy,
GLXContext ctx,
int attribute,
int *value)
PARAMETERS
dpy Specifies the connection to the X server.
ctx Specifies the GLXContext.
attribute Specifies attribute value to return.
value Returns the requested value.
DESCRIPTION
glXQueryContext returns the attribute of ctx. It may cause a round trip
to the server. The values and types corresponding to each GLX context
attribute are:
┌─────────────────────────────────────────────────────────────────┐
│ Attribute Type Description │
├─────────────────────────────────────────────────────────────────┤
│GLX_FB_CONFIG_ID XID XID of GLXFBConfig associated with ctx │
│GLX_RENDER_TYPE int type of rendering supported │
│GLX_SCREEN int screen number │
└─────────────────────────────────────────────────────────────────┘
NOTES
glXQueryContext 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
glXQueryContext returns GLX_BAD_ATTRIBUTE if attribute is not a valid
GLX context attribute and 0 otherwise.
SEE ALSO
glXCreateNewContext
20 May 01 GLXQUERYCONTEXT(3GL)