Commit | Line | Data |
---|---|---|
7faf1d71 AW |
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="glXQueryVersion"> | |
5 | <refmeta> | |
6 | <refmetainfo> | |
7 | <copyright> | |
8 | <year>1991-2006</year> | |
9 | <holder>Silicon Graphics, Inc.</holder> | |
10 | </copyright> | |
11 | </refmetainfo> | |
12 | <refentrytitle>glXQueryVersion</refentrytitle> | |
13 | <manvolnum>3G</manvolnum> | |
14 | </refmeta> | |
15 | <refnamediv> | |
16 | <refname>glXQueryVersion</refname> | |
17 | <refpurpose>return the version numbers of the GLX extension</refpurpose> | |
18 | </refnamediv> | |
19 | <refsynopsisdiv><title>C Specification</title> | |
20 | <funcsynopsis> | |
21 | <funcprototype> | |
22 | <funcdef>Bool <function>glXQueryVersion</function></funcdef> | |
23 | <paramdef>Display * <parameter>dpy</parameter></paramdef> | |
24 | <paramdef>int * <parameter>major</parameter></paramdef> | |
25 | <paramdef>int * <parameter>minor</parameter></paramdef> | |
26 | </funcprototype> | |
27 | </funcsynopsis> | |
28 | </refsynopsisdiv> | |
29 | <!-- eqn: ignoring delim $$ --> | |
30 | <refsect1 id="parameters"><title>Parameters</title> | |
31 | <variablelist> | |
32 | <varlistentry> | |
33 | <term><parameter>dpy</parameter></term> | |
34 | <listitem> | |
35 | <para> | |
36 | Specifies the connection to the X server. | |
37 | </para> | |
38 | </listitem> | |
39 | </varlistentry> | |
40 | <varlistentry> | |
41 | <term><parameter>major</parameter></term> | |
42 | <listitem> | |
43 | <para> | |
44 | Returns the major version number of the GLX server extension. | |
45 | </para> | |
46 | </listitem> | |
47 | </varlistentry> | |
48 | <varlistentry> | |
49 | <term><parameter>minor</parameter></term> | |
50 | <listitem> | |
51 | <para> | |
52 | Returns the minor version number of the GLX server extension. | |
53 | </para> | |
54 | </listitem> | |
55 | </varlistentry> | |
56 | </variablelist> | |
57 | </refsect1> | |
58 | <refsect1 id="description"><title>Description</title> | |
59 | <para> | |
60 | <function>glXQueryVersion</function> returns the major and minor version numbers of the GLX extension | |
61 | implemented by the server associated with connection <parameter>dpy</parameter>. | |
62 | Implementations with the same major version number are upward compatible, | |
63 | meaning that the implementation with the higher minor number is a superset | |
64 | of the version with the lower minor number. | |
65 | </para> | |
66 | <para> | |
67 | <parameter>major</parameter> and <parameter>minor</parameter> do not return values if they are specified as | |
68 | <constant>NULL</constant>. | |
69 | </para> | |
70 | </refsect1> | |
71 | <refsect1 id="errors"><title>Errors</title> | |
72 | <para> | |
73 | <function>glXQueryVersion</function> returns <constant>False</constant> if it fails, | |
74 | <constant>True</constant> otherwise. | |
75 | </para> | |
76 | <para> | |
77 | <parameter>major</parameter> and <parameter>minor</parameter> are not updated when <constant>False</constant> is returned. | |
78 | </para> | |
79 | </refsect1> | |
80 | <refsect1 id="seealso"><title>See Also</title> | |
81 | <para> | |
82 | <citerefentry><refentrytitle>glXQueryExtension</refentrytitle></citerefentry> | |
83 | </para> | |
84 | </refsect1> | |
85 | <refsect1 id="Copyright"><title>Copyright</title> | |
86 | <para> | |
87 | Copyright <trademark class="copyright"></trademark> 1991-2006 | |
88 | Silicon Graphics, Inc. This document is licensed under the SGI | |
89 | Free Software B License. For details, see | |
90 | <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>. | |
91 | </para> | |
92 | </refsect1> | |
93 | </refentry> |