table of contents
GLXQUERYCONTEXTINFOE(3G) | OpenGL Manual | GLXQUERYCONTEXTINFOE(3G) |
NAME¶
glXQueryContextInfoEXT - query context information
C SPECIFICATION¶
int glXQueryContextInfoEXT(Display * dpy, GLXContext ctx, int attribute, int * value);
PARAMETERS¶
dpy
ctx
attribute
value
DESCRIPTION¶
glXQueryContextInfoEXT sets value to the value of attribute with respect to ctx. glXQueryContextInfoEXT returns an error code if it fails for any reason. Otherwise, Success is returned.
attribute may be one of the following:
GLX_SHARED_CONTEXT_EXT
GLX_VISUAL_ID_EXT
GLX_SCREEN_EXT
This call may cause a round-trip to the server.
glXQueryContextInfoEXT is part of the GLX_EXT_import_context extension, not part of the core GLX command set. If GLX_EXT_import_context is included in the string returned by glXQueryExtensionsString(), the extension is supported.
ERRORS¶
GLXBadContext is generated if ctx does not refer to a valid context.
GLX_BAD_ATTRIBUTE is returned if attribute is not a valid GLX context attribute.
fred GLX_BAD_CONTEXT is returned if attribute is not a valid context.
SEE ALSO¶
glXCreateContext(), glXQueryVersion(), glXQueryExtensionsString()
COPYRIGHT¶
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
AUTHORS¶
opengl.org
04/12/2021 | opengl.org |