1GLDEPTHMASK(3G) OpenGL Manual GLDEPTHMASK(3G)
2
3
4
6 glDepthMask - enable or disable writing into the depth buffer
7
9 void glDepthMask(GLboolean flag);
10
12 flag
13 Specifies whether the depth buffer is enabled for writing. If flag
14 is GL_FALSE, depth buffer writing is disabled. Otherwise, it is
15 enabled. Initially, depth buffer writing is enabled.
16
18 glDepthMask specifies whether the depth buffer is enabled for writing.
19 If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is
20 enabled. Initially, depth buffer writing is enabled.
21
23 glGet() with argument GL_DEPTH_WRITEMASK
24
26 Even if the depth buffer exists and the depth mask is non-zero, the
27 depth buffer is not updated if the depth test is disabled. In order to
28 unconditionally write to the depth buffer, the depth test should be
29 enabled and set to GL_ALWAYS (see glDepthFunc()).
30
32 glColorMask(), glDepthFunc(), glDepthRange(), glStencilMask()
33
35 Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2012 Khronos
36 Group. This document is licensed under the SGI Free Software B License.
37 For details, see http://oss.sgi.com/projects/FreeB/.
38
40 opengl.org
41
42
43
44opengl.org 06/10/2014 GLDEPTHMASK(3G)