1GLDEPTHMASK(3G)                 [FIXME: manual]                GLDEPTHMASK(3G)
2
3
4

NAME

6       glDepthMask - enable or disable writing into the depth buffer
7

C SPECIFICATION

9       void glDepthMask(GLboolean flag);
10

PARAMETERS

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

DESCRIPTION

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

ASSOCIATED GETS

23       glGet() with argument GL_DEPTH_WRITEMASK
24

NOTES

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

VERSION SUPPORT

32       ┌────────────┬───────────────────────────────────────────────────────────────────────┐
33       │            │                OpenGL Version                                         
34       ├────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
35Function    2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
36/           │     │     │     │     │     │     │     │     │     │     │     │     │
37Feature     │     │     │     │     │     │     │     │     │     │     │     │     │
38Name        │     │     │     │     │     │     │     │     │     │     │     │     │
39       ├────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
40glDepthMask │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
41       └────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
42

SEE ALSO

44       glColorMask(), glDepthFunc(), glDepthRange(), glStencilMask()
45
47       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
48       Khronos Group. This document is licensed under the SGI This document is
49       licensed under the SGI Free Software B License. For details, see
50       http://oss.sgi.com/projects/FreeB/.
51
53       Copyright © 1991-2006 Silicon Graphics, Inc.
54       Copyright © 2010-2014 Khronos Group
55
56
57
58[FIXME: source]                   07/13/2018                   GLDEPTHMASK(3G)
Impressum