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">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glXQueryVersion
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glXQueryVersion
</refname>
17 <refpurpose>return the version numbers of the GLX extension
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
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>
29 <!-- eqn: ignoring delim $$ -->
30 <refsect1 id=
"parameters"><title>Parameters
</title>
33 <term><parameter>dpy
</parameter></term>
36 Specifies the connection to the X server.
41 <term><parameter>major
</parameter></term>
44 Returns the major version number of the GLX server extension.
49 <term><parameter>minor
</parameter></term>
52 Returns the minor version number of the GLX server extension.
58 <refsect1 id=
"description"><title>Description
</title>
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.
67 <parameter>major
</parameter> and
<parameter>minor
</parameter> do not return values if they are specified as
68 <constant>NULL
</constant>.
71 <refsect1 id=
"errors"><title>Errors
</title>
73 <function>glXQueryVersion
</function> returns
<constant>False
</constant> if it fails,
74 <constant>True
</constant> otherwise.
77 <parameter>major
</parameter> and
<parameter>minor
</parameter> are not updated when
<constant>False
</constant> is returned.
80 <refsect1 id=
"seealso"><title>See Also
</title>
82 <citerefentry><refentrytitle>glXQueryExtension
</refentrytitle></citerefentry>
85 <refsect1 id=
"Copyright"><title>Copyright
</title>
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>.