<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN" "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd"> <refentry id="glClearDepth"> <refentryinfo> <copyright> <year>1991-2006</year> <holder>Silicon Graphics, Inc.</holder> </copyright> <copyright> <year>2010-2013</year> <holder>Khronos Group</holder> </copyright> </refentryinfo> <refmeta> <refentrytitle>glClearDepth</refentrytitle> <manvolnum>3G</manvolnum> </refmeta> <refnamediv> <refname>glClearDepth</refname> <refpurpose>specify the clear value for the depth buffer</refpurpose> </refnamediv> <refsynopsisdiv><title>C Specification</title> <funcsynopsis> <funcprototype> <funcdef>void <function>glClearDepth</function></funcdef> <paramdef>GLdouble <parameter>depth</parameter></paramdef> </funcprototype> <funcprototype> <funcdef>void <function>glClearDepthf</function></funcdef> <paramdef>GLfloat <parameter>depth</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="parameters"><title>Parameters</title> <variablelist> <varlistentry> <term><parameter>depth</parameter></term> <listitem> <para> Specifies the depth value used when the depth buffer is cleared. The initial value is 1. </para> </listitem> </varlistentry> </variablelist> </refsect1> <refsect1 id="description"><title>Description</title> <para> <function>glClearDepth</function> specifies the depth value used by <citerefentry><refentrytitle>glClear</refentrytitle></citerefentry> to clear the depth buffer. Values specified by <function>glClearDepth</function> are clamped to the range <inlineequation><mml:math> <!-- eqn: [0,1]: --> <mml:mfenced open="[" close="]"> <mml:mn>0</mml:mn> <mml:mn>1</mml:mn> </mml:mfenced> </mml:math></inlineequation>. </para> </refsect1> <refsect1 id="notes"><title>Notes</title> <para> The type of the <parameter>depth</parameter> parameter was changed from GLclampf to GLfloat for <function>glClearDepthf</function> and from GLclampd to GLdouble for <function>glClearDepth</function>. This change is transparent to user code and is described in detail on the <citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry> page. </para> </refsect1> <refsect1 id="associatedgets"><title>Associated Gets</title> <para> <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_DEPTH_CLEAR_VALUE</constant> </para> </refsect1> <refsect1 id="seealso"><title>See Also</title> <para> <citerefentry><refentrytitle>glClear</refentrytitle></citerefentry>, <citerefentry><refentrytitle>removedTypes</refentrytitle></citerefentry> </para> </refsect1> <refsect1 id="Copyright"><title>Copyright</title> <para> Copyright <trademark class="copyright"></trademark> 1991-2006 Silicon Graphics, Inc. Copyright <trademark class="copyright"></trademark> 2010-2013 Khronos Group. 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>