1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glXQueryContextInfoEXT">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glXQueryContextInfoEXT
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glXQueryContextInfoEXT
</refname>
17 <refpurpose>query context information
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>int
<function>glXQueryContextInfoEXT
</function></funcdef>
23 <paramdef>Display *
<parameter>dpy
</parameter></paramdef>
24 <paramdef>GLXContext
<parameter>ctx
</parameter></paramdef>
25 <paramdef>int
<parameter>attribute
</parameter></paramdef>
26 <paramdef>int *
<parameter>value
</parameter></paramdef>
30 <!-- eqn: ignoring delim $$ -->
31 <refsect1 id=
"parameters"><title>Parameters
</title>
34 <term><parameter>dpy
</parameter></term>
37 Specifies the connection to the X server.
42 <term><parameter>ctx
</parameter></term>
45 Specifies a GLX rendering context.
50 <term><parameter>attribute
</parameter></term>
53 Specifies that a context parameter should be retrieved. Must be one of
54 <constant>GLX_SHARED_CONTEXT_EXT
</constant>,
<constant>GLX_VISUAL_ID_EXT
</constant>, or
<constant>GLX_SCREEN_EXT
</constant>.
59 <term><parameter>value
</parameter></term>
62 Contains the return value for
<parameter>attribute
</parameter>.
68 <refsect1 id=
"description"><title>Description
</title>
70 <function>glXQueryContextInfoEXT
</function> sets
<parameter>value
</parameter> to the value of
<parameter>attribute
</parameter> with respect to
<parameter>ctx
</parameter>.
71 <function>glXQueryContextInfoEXT
</function> returns an error code if it fails for any reason. Otherwise,
72 <constant>Success
</constant> is returned.
75 <parameter>attribute
</parameter> may be one of the following:
79 <term><constant>GLX_SHARED_CONTEXT_EXT
</constant></term>
82 Returns the XID of the share list context associated with
<parameter>ctx
</parameter> at its
88 <term><constant>GLX_VISUAL_ID_EXT
</constant></term>
91 Returns the XID of the GLX Visual associated with
<parameter>ctx
</parameter>.
96 <term><constant>GLX_SCREEN_EXT
</constant></term>
99 Returns the screen number associated with
<parameter>ctx
</parameter>.
105 This call may cause a round-trip to the server.
108 <function>glXQueryContextInfoEXT
</function> is part of the
<code>EXT_import_context
</code> extension,
109 not part of the core GLX command set. If _glxextstring(EXT_import_context)
110 is included in the string returned by
<citerefentry><refentrytitle>glXQueryExtensionsString
</refentrytitle></citerefentry>,
111 when called with argument
<constant>GLX_EXTENSIONS
</constant>,
112 extension
<code>EXT_import_context
</code> is supported.
115 <refsect1 id=
"errors"><title>Errors
</title>
117 <constant>GLXBadContext
</constant> is generated if
<parameter>ctx
</parameter> does not
118 refer to a valid context.
121 <constant>GLX_BAD_ATTRIBUTE
</constant> is returned if
<parameter>attribute
</parameter> is not a valid GLX
125 fred
<constant>GLX_BAD_CONTEXT
</constant> is returned if
<parameter>attribute
</parameter> is not a valid context.
128 <refsect1 id=
"seealso"><title>See Also
</title>
130 <citerefentry><refentrytitle>glXCreateContext
</refentrytitle></citerefentry>,
131 <citerefentry><refentrytitle>glXQueryVersion
</refentrytitle></citerefentry>,
132 <citerefentry><refentrytitle>glXQueryExtensionsString
</refentrytitle></citerefentry>
135 <refsect1 id=
"Copyright"><title>Copyright
</title>
137 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
138 Silicon Graphics, Inc. This document is licensed under the SGI
139 Free Software B License. For details, see
140 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.