glXQueryContextInfoEXT(3G) OpenGL Reference - GLX glXQueryContextInfoEXT(3G)
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:
GLXSHARECONTEXTEXT 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.
GLXVISUALIDEXT Visual i.d. for XVisualInfo structure that is
associated with ctx.
GLXSCREENEXT Screen number for ctx.
GLXFBCONFIGIDSGIX 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 EXTimportcontext extension.
GLXFBCONFIGIDSGIX is not a valid attribute unless the SGIXfbconfig
extension is supported.
Page 1
glXQueryContextInfoEXT(3G) OpenGL Reference - GLX glXQueryContextInfoEXT(3G)
ERRORS
glXQueryContextInfoEXT returns GLXBADATTRIBUTE if attribute is invalid.
A GLXBadContext error is generated if ctx is not a valid rendering
context.
SEE ALSO
glXCreateContext
Page 2