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/.
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/.
相关文章推荐
- VS2012下基于Glut OpenGL glDepthMask示例程序:
- VS2012下基于Glut OpenGL glDepthMask示例程序:
- glDepthMask 使用时遇到的问题
- 关于GLSL的gl_FragCoord、gl_FragDepth以及深度计算
- glDepthFunc
- opengl GL_DEPTH_TEST
- 关于GLSL的gl_FragCoord、gl_FragDepth以及深度计算
- 《高效学习OpenGL》之 视口变换 glViewport(), glDepthRange()
- OpenGL函数思考-glDepthFunc
- 《高效学习OpenGL》 之 深度测试 遮挡查询 glDepthFunc(), glGenQueries(), glBeginQuery(), glGetQueryObjectiv()
- glClearColor、glClear、glColor、glShadeModel、glClearDepth、glDepthFunc
- glClearDepthf与glDepthFunc
- glEnable(GL_DEPTH_TEST) 有什么用?
- glPushMatrix() glPopMatrix() GL_DEPTH_TEST
- glDepthFunc()函数
- 关于OpenGL中深度截取(GL_DEPTH_CLAMP)的讲解
- glClearDepthf与glDepthFunc
- glClearDepthf与glDepthFunc
- OpenGL函数思考-glDepthFunc
- glEnable(GL_DEPTH_TEST)的问题