Name 函数名
glDepthMask — enable or disable writing into the depth buffer 允许或禁止向深度缓冲区写入数据
C Specification C风格描述
void glDepthMask(GLboolean flag);
Parameters 参数
flag
Specifies whether the depth buffer is enabled for writing.If flag is GL_FALSE,depth buffer writing is disabled.Otherwise, it is enabled.Initially, depth buffer writing is enabled. 指定是否允许向深度缓冲区写入数据。如果flag是GL_FLASE,那么向深度缓冲区写入是禁止的。否则,就是允许的。初始时,是允许向深度缓冲区写入数据的。
Description 描述
Errors
GL_INVALID_OPERATION is generated if glDepthMask is executed between the execution of glBegin and the corresponding execution of glEnd. 如果在glBegin和glEnd之间执行glDepthMask,会产生GL_INVALID_OPERATION。
Associated Gets
glGet with argument GL_DEPTH_WRITEMASK
glColorMask,
glDepthFunc,
glDepthRange,
glIndexMask,
glStencilMask
Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.