1GLXQUERYCONTEXTINFOE(3G) OpenGL Manual GLXQUERYCONTEXTINFOE(3G)
2
3
4
6 glXQueryContextInfoEXT - query context information
7
9 int glXQueryContextInfoEXT(Display * dpy, GLXContext ctx,
10 int attribute, int * value);
11
13 dpy
14 Specifies the connection to the X server.
15
16 ctx
17 Specifies a GLX rendering context.
18
19 attribute
20 Specifies that a context parameter should be retrieved. Must be one
21 of GLX_SHARED_CONTEXT_EXT, GLX_VISUAL_ID_EXT, or GLX_SCREEN_EXT.
22
23 value
24 Contains the return value for attribute.
25
27 glXQueryContextInfoEXT sets value to the value of attribute with
28 respect to ctx. glXQueryContextInfoEXT returns an error code if it
29 fails for any reason. Otherwise, Success is returned.
30
31 attribute may be one of the following:
32
33 GLX_SHARED_CONTEXT_EXT
34 Returns the XID of the share list context associated with ctx at
35 its creation.
36
37 GLX_VISUAL_ID_EXT
38 Returns the XID of the GLX Visual associated with ctx.
39
40 GLX_SCREEN_EXT
41 Returns the screen number associated with ctx.
42
43 This call may cause a round-trip to the server.
44
45 glXQueryContextInfoEXT is part of the EXT_import_context extension, not
46 part of the core GLX command set. If _glxextstring(EXT_import_context)
47 is included in the string returned by glXQueryExtensionsString(), when
48 called with argument GLX_EXTENSIONS, extension EXT_import_context is
49 supported.
50
52 GLXBadContext is generated if ctx does not refer to a valid context.
53
54 GLX_BAD_ATTRIBUTE is returned if attribute is not a valid GLX context
55 attribute.
56
57 fred GLX_BAD_CONTEXT is returned if attribute is not a valid context.
58
60 glXCreateContext(), glXQueryVersion(), glXQueryExtensionsString()
61
63 Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed
64 under the SGI Free Software B License. For details, see
65 http://oss.sgi.com/projects/FreeB/.
66
68 opengl.org
69
70
71
72opengl.org 06/10/2014 GLXQUERYCONTEXTINFOE(3G)