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=
"glDepthMask">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glDepthMask
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glDepthMask
</refname>
17 <refpurpose>enable or disable writing into the depth buffer
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glDepthMask
</function></funcdef>
23 <paramdef>GLboolean
<parameter>flag
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>flag
</parameter></term>
33 Specifies whether the depth buffer is enabled for writing.
34 If
<parameter>flag
</parameter> is
<constant>GL_FALSE
</constant>,
35 depth buffer writing is disabled.
36 Otherwise, it is enabled.
37 Initially, depth buffer writing is enabled.
43 <refsect1 id=
"description"><title>Description
</title>
45 <function>glDepthMask
</function> specifies whether the depth buffer is enabled for writing.
46 If
<parameter>flag
</parameter> is
<constant>GL_FALSE
</constant>,
47 depth buffer writing is disabled.
48 Otherwise, it is enabled.
49 Initially, depth buffer writing is enabled.
52 <refsect1 id=
"errors"><title>Errors
</title>
54 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glDepthMask
</function>
55 is executed between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry>
56 and the corresponding execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
59 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
61 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_DEPTH_WRITEMASK
</constant>
64 <refsect1 id=
"seealso"><title>See Also
</title>
66 <citerefentry><refentrytitle>glColorMask
</refentrytitle></citerefentry>,
67 <citerefentry><refentrytitle>glDepthFunc
</refentrytitle></citerefentry>,
68 <citerefentry><refentrytitle>glDepthRange
</refentrytitle></citerefentry>,
69 <citerefentry><refentrytitle>glIndexMask
</refentrytitle></citerefentry>,
70 <citerefentry><refentrytitle>glStencilMask
</refentrytitle></citerefentry>
73 <refsect1 id=
"Copyright"><title>Copyright
</title>
75 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
76 Silicon Graphics, Inc. This document is licensed under the SGI
77 Free Software B License. For details, see
78 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.