您的位置:首页 > 其它

glDepthMask

2013-10-25 17:28 190 查看
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 描述

glDepthMask 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. glDepthMask指定是否允许向深度缓冲区写入数据。如果flag是GL_FLASE,那么向深度缓冲区写入是禁止的。否则,就是允许的。初始时,是允许向深度缓冲区写入数据的。

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

See Also

glColorMask,

glDepthFunc,

glDepthRange,

glIndexMask,

glStencilMask

Copyright

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/.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: