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=
"gluGetString">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>gluGetString
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>gluGetString
</refname>
17 <refpurpose>return a string describing the GLU version or GLU extensions
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>const GLubyte *
<function>gluGetString
</function></funcdef>
23 <paramdef>GLenum
<parameter>name
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>name
</parameter></term>
33 Specifies a symbolic constant, one of
34 <constant>GLU_VERSION
</constant>, or
<constant>GLU_EXTENSIONS
</constant>.
40 <refsect1 id=
"description"><title>Description
</title>
42 <function>gluGetString
</function> returns a pointer to a static string describing the
43 GLU version or the GLU extensions that are supported.
46 The version number is one of the following
50 <emphasis>major_number.minor_number
</emphasis>
51 <emphasis>major_number.minor_number.release_number
</emphasis>.
54 The version string is of the following form:
57 <emphasis>version number
<space
>vendor-specific information
</emphasis>
60 Vendor-specific information is optional.
61 Its format and contents depend on the implementation.
64 The standard GLU contains a basic set of features and capabilities.
65 If a company or group of companies wish to support other features,
66 these may be included as extensions to the GLU.
67 If
<parameter>name
</parameter> is
68 <constant>GLU_EXTENSIONS
</constant>, then
<function>gluGetString
</function>
69 returns a space-separated list of names of supported GLU extensions.
70 (Extension names never contain spaces.)
73 All strings are null-terminated.
76 <refsect1 id=
"notes"><title>Notes
</title>
78 <function>gluGetString
</function> only returns information about GLU extensions. Call
<function>glGetString
</function>
79 to get a list of GL extensions.
82 <function>gluGetString
</function> is an initialization routine. Calling it after
83 a
<citerefentry><refentrytitle>glNewList
</refentrytitle></citerefentry> results in undefined behavior.
86 <refsect1 id=
"errors"><title>Errors
</title>
88 NULL is returned if
<parameter>name
</parameter> is not
89 <constant>GLU_VERSION
</constant> or
<constant>GLU_EXTENSIONS
</constant>.
94 <refsect1 id=
"seealso"><title>See Also
</title>
96 <citerefentry><refentrytitle>glGetString
</refentrytitle></citerefentry>
99 <refsect1 id=
"Copyright"><title>Copyright
</title>
101 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
102 Silicon Graphics, Inc. This document is licensed under the SGI
103 Free Software B License. For details, see
104 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.