glDepthMask
[New
- Windows 95, OEM Service Release 2]
The glDepthMask
function enables or disables writing into the depth buffer.
void glDepthMask(
GLboolean flag |
|
); |
|
Parameters
flag
Specifies
whether the depth buffer is enabled for writing. If flag is zero,
depth-buffer writing is disabled. Otherwise, it is enabled. Initially,
depth-buffer writing is enabled.
Remarks
The following
function retrieves information related to glDepthMask:
glGet with
argument GL_DEPTH_WRITEMASK
Error Codes
The following
are the error codes generated and their conditions.
Error
Code |
Condition |
GL_INVALID_OPERATION
|
glDepthMask was called between a call to glBegin and the
corresponding call to glEnd. |
See Also