glDepthMask.3   [plain text]


'\" e  
'\"macro stdmacro
.ds Vn Version 1.2
.ds Dt 24 September 1999
.ds Re Release 1.2.1
.ds Dp May 22 14:45
.ds Dm 7 May 22 14:
.ds Xs 13631     3
.TH GLDEPTHMASK 3G
.SH NAME
.B "glDepthMask
\- enable or disable writing into the depth buffer

.SH C SPECIFICATION
void \f3glDepthMask\fP(
GLboolean \fIflag\fP )
.nf
.fi

.SH PARAMETERS
.TP \w'\f2flag\fP\ \ 'u 
\f2flag\fP
Specifies whether the depth buffer is enabled for writing.
If \f2flag\fP is \%\f3GL_FALSE\fP,
depth buffer writing is disabled.
Otherwise, it is enabled.
Initially, depth buffer writing is enabled.
.SH DESCRIPTION
\%\f3glDepthMask\fP specifies whether the depth buffer is enabled for writing.
If \f2flag\fP is \%\f3GL_FALSE\fP,
depth buffer writing is disabled.
Otherwise, it is enabled.
Initially, depth buffer writing is enabled.
.SH ERRORS
\%\f3GL_INVALID_OPERATION\fP is generated if \%\f3glDepthMask\fP
is executed between the execution of \%\f3glBegin\fP
and the corresponding execution of \%\f3glEnd\fP.
.SH ASSOCIATED GETS
\%\f3glGet\fP with argument \%\f3GL_DEPTH_WRITEMASK\fP
.SH SEE ALSO
\%\f3glColorMask\fP,
\%\f3glDepthFunc\fP,
\%\f3glDepthRange\fP,
\%\f3glIndexMask\fP,
\%\f3glStencilMask\fP