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=
"gluErrorString">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>gluErrorString
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>gluErrorString
</refname>
17 <refpurpose>produce an error string from a GL or GLU error code
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>const GLubyte *
<function>gluErrorString
</function></funcdef>
23 <paramdef>GLenum
<parameter>error
</parameter></paramdef>
27 <!-- eqn: ignoring delim $$ -->
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>error
</parameter></term>
34 Specifies a GL or GLU error code.
40 <refsect1 id=
"description"><title>Description
</title>
42 <function>gluErrorString
</function> produces an error string from a GL or GLU error code. The string
43 is in ISO Latin
1 format. For example,
44 <function>gluErrorString
</function>(
<constant>GLU_OUT_OF_MEMORY
</constant>) returns the string
45 <emphasis>out of memory
</emphasis>.
48 The standard GLU error codes are
<constant>GLU_INVALID_ENUM
</constant>,
49 <constant>GLU_INVALID_VALUE
</constant>,
50 and
<constant>GLU_OUT_OF_MEMORY
</constant>.
51 Certain other GLU functions can return specialized error codes
53 See the
<citerefentry><refentrytitle>glGetError
</refentrytitle></citerefentry> reference page for the list of
57 <refsect1 id=
"errors"><title>Errors
</title>
59 <constant>NULL
</constant> is returned if
<parameter>error
</parameter> is not a valid GL or GLU error code.
62 <refsect1 id=
"seealso"><title>See Also
</title>
64 <citerefentry><refentrytitle>gluNurbsCallback
</refentrytitle></citerefentry>,
65 <citerefentry><refentrytitle>gluQuadricCallback
</refentrytitle></citerefentry>,
66 <citerefentry><refentrytitle>gluTessCallback
</refentrytitle></citerefentry>,
67 <citerefentry><refentrytitle>glGetError
</refentrytitle></citerefentry>
70 <refsect1 id=
"Copyright"><title>Copyright
</title>
72 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
73 Silicon Graphics, Inc. This document is licensed under the SGI
74 Free Software B License. For details, see
75 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.