
<refentry id="glXQueryServerString">
    <refmeta>
        <refmetainfo>
            <copyright>
                <year>1991-2006</year>
                <holder>Silicon Graphics, Inc.</holder>
            </copyright>
        </refmetainfo>
        <refentrytitle>glXQueryServerString</refentrytitle>
        <manvolnum>3G</manvolnum>
    </refmeta>
    <refnamediv>
        <refname>glXQueryServerString</refname>
        <refpurpose>return string describing the server</refpurpose>
    </refnamediv>
    <refsynopsisdiv><title>C Specification</title>
        <funcsynopsis>
            <funcprototype>
                <funcdef>const char * <function>glXQueryServerString</function></funcdef>
                <paramdef>Display * <parameter>dpy</parameter></paramdef>
                <paramdef>int <parameter>screen</parameter></paramdef>
                <paramdef>int <parameter>name</parameter></paramdef>
            </funcprototype>
        </funcsynopsis>
    </refsynopsisdiv>
    <!-- eqn: ignoring delim $$ -->
    <refsect1 id="parameters"><title>Parameters</title>
        <variablelist>
        <varlistentry>
            <term><parameter>dpy</parameter></term>
            <listitem>
                <para>
                    Specifies the connection to the X server.
                </para>
            </listitem>
        </varlistentry>
        <varlistentry>
            <term><parameter>screen</parameter></term>
            <listitem>
                <para>
                    Specifies the screen number.
                </para>
            </listitem>
        </varlistentry>
        <varlistentry>
            <term><parameter>name</parameter></term>
            <listitem>
                <para>
                    Specifies which string is returned:
                    one of <constant>GLX_VENDOR</constant>, <constant>GLX_VERSION</constant>, or <constant>GLX_EXTENSIONS</constant>.
                </para>
            </listitem>
        </varlistentry>
        </variablelist>
    </refsect1>
    <refsect1 id="description"><title>Description</title>
        <para>
            <function>glXQueryServerString</function> 
            returns a pointer to a static, null-terminated string 
            describing some aspect of the server's GLX extension. The possible values for
            <parameter>name</parameter> and the format of the strings is the same as for
            <citerefentry><refentrytitle>glXGetClientString</refentrytitle></citerefentry>. If <parameter>name</parameter> is not set to a recognized value,
            <constant>NULL</constant> is returned. 
        </para>
    </refsect1>
    <refsect1 id="notes"><title>Notes</title>
        <para>
            <function>glXQueryServerString</function> is available only if the GLX version is 1.1 or greater.
        </para>
        <para>
            If the GLX version is 1.1 or 1.0, the GL version must be 1.0.
            If the GLX version is 1.2, the GL version must be 1.1.
            If the GLX version is 1.3, the GL version must be 1.2.
        </para>
        <para>
            <function>glXQueryServerString</function> only returns information about GLX extensions supported by the server.
            Call <citerefentry><refentrytitle>glGetString</refentrytitle></citerefentry> to get a list of GL extensions.
            Call <citerefentry><refentrytitle>glXGetClientString</refentrytitle></citerefentry> to get a list of GLX extensions supported by the
            client.
        </para>
    </refsect1>
    <refsect1 id="seealso"><title>See Also</title>
        <para>
            <citerefentry><refentrytitle>glXQueryVersion</refentrytitle></citerefentry>,
            <citerefentry><refentrytitle>glXGetClientString</refentrytitle></citerefentry>,
            <citerefentry><refentrytitle>glXQueryExtensionsString</refentrytitle></citerefentry>
        </para>
    </refsect1>
    <refsect1 id="Copyright"><title>Copyright</title>
        <para>
            Copyright <trademark class="copyright"></trademark> 1991-2006
            Silicon Graphics, Inc. This document is licensed under the SGI
            Free Software B License. For details, see
            <ulink url="http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/</ulink>.
        </para>
    </refsect1>
</refentry>
