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=
"glClearDepth">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glClearDepth
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glClearDepth
</refname>
17 <refpurpose>specify the clear value for the depth buffer
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glClearDepth
</function></funcdef>
23 <paramdef>GLdouble
<parameter>depth
</parameter></paramdef>
26 <funcdef>void
<function>glClearDepthf
</function></funcdef>
27 <paramdef>GLfloat
<parameter>depth
</parameter></paramdef>
31 <refsect1 id=
"parameters"><title>Parameters
</title>
34 <term><parameter>depth
</parameter></term>
37 Specifies the depth value used when the depth buffer is cleared. The
44 <refsect1 id=
"description"><title>Description
</title>
46 <function>glClearDepth
</function> specifies the depth value used by
<citerefentry><refentrytitle>glClear
</refentrytitle></citerefentry> to clear the depth buffer.
47 Values specified by
<function>glClearDepth
</function> are clamped to the range
48 <inlineequation><mml:math>
50 <mml:mfenced open=
"[" close=
"]">
54 </mml:math></inlineequation>.
57 <refsect1 id=
"notes"><title>Notes
</title>
59 The type of the
<parameter>depth
</parameter> parameter was
60 changed from GLclampf to GLfloat for
61 <function>glClearDepthf
</function> and from GLclampd to
62 GLdouble for
<function>glClearDepth
</function>. This change
63 is transparent to user code and is described in detail on
65 <citerefentry><refentrytitle>removedTypes
</refentrytitle></citerefentry>
69 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
71 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_DEPTH_CLEAR_VALUE
</constant>
74 <refsect1 id=
"seealso"><title>See Also
</title>
76 <citerefentry><refentrytitle>glClear
</refentrytitle></citerefentry>,
77 <citerefentry><refentrytitle>removedTypes
</refentrytitle></citerefentry>
80 <refsect1 id=
"Copyright"><title>Copyright
</title>
82 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
83 Silicon Graphics, Inc. This document is licensed under the SGI
84 Free Software B License. For details, see
85 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.