[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glDepthMask Subroutine

Purpose

Enables or disables writing into the depth buffer.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glDepthMask(GLboolean Flag)

Parameters

Flag Specifies whether the depth buffer is enabled for writing. If Flag is 0, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.

Description

The glDepthMask subroutine specifies whether the depth buffer is enabled for writing. If the Flag parameter is zero (0), depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled.

Errors

GL_INVALID_OPERATION The glDepthMask subroutine is called between a call to glBegin and the corresponding call to glEnd.

Associated Gets

Associated gets for the glDepthMask subroutine are as follows. (See the glGet subroutine for more information.)

glGet with argument GL_DEPTH_WRITEMASK.

Files

/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glBegin or glEnd subroutine, glColorMask subroutine, glDepthFunc subroutine, glDepthRange subroutine, glIndexMask subroutine, glStencilMask subroutine.

OpenGL Overview.


[ Previous | Next | Contents | Glossary | Home | Search ]