2009-03-08 01:46:58 +01:00
<?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" >
<refmeta >
<refmetainfo >
<copyright >
<year > 1991-2006</year>
<holder > Silicon Graphics, Inc.</holder>
</copyright>
</refmetainfo>
<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 > GLclampd <parameter > depth</parameter> </paramdef>
</funcprototype>
2010-12-04 22:51:40 +01:00
<funcprototype >
<funcdef > void <function > glClearDepthf</function> </funcdef>
<paramdef > GLclampf <parameter > depth</parameter> </paramdef>
</funcprototype>
2009-03-08 01:46:58 +01:00
</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 >
2010-12-04 22:51:40 +01:00
<!-- eqn: [0,1]: -->
2009-03-08 01:46:58 +01:00
<mml:mfenced open= "[" close= "]" >
<mml:mn > 0</mml:mn>
<mml:mn > 1</mml:mn>
</mml:mfenced>
</mml:math> </inlineequation> .
</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>
</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>