1GLSTENCILMASK(3G) [FIXME: manual] GLSTENCILMASK(3G)
2
3
4
6 glStencilMask - control the front and back writing of individual bits
7 in the stencil planes
8
10 void glStencilMask(GLuint mask);
11
13 mask
14 Specifies a bit mask to enable and disable writing of individual
15 bits in the stencil planes. Initially, the mask is all 1's.
16
18 glStencilMask controls the writing of individual bits in the stencil
19 planes. The least significant n bits of mask, where n is the number of
20 bits in the stencil buffer, specify a mask. Where a 1 appears in the
21 mask, it's possible to write to the corresponding bit in the stencil
22 buffer. Where a 0 appears, the corresponding bit is write-protected.
23 Initially, all bits are enabled for writing.
24
25 There can be two separate mask writemasks; one affects back-facing
26 polygons, and the other affects front-facing polygons as well as other
27 non-polygon primitives. glStencilMask() sets both front and back
28 stencil writemasks to the same values. Use glStencilMaskSeparate() to
29 set front and back stencil writemasks to different values.
30
32 glStencilMask() is the same as calling glStencilMaskSeparate() with
33 face set to GL_FRONT_AND_BACK.
34
36 glGet() with argument GL_STENCIL_WRITEMASK, GL_STENCIL_BACK_WRITEMASK,
37 or GL_STENCIL_BITS
38
40 ┌──────────────┬───────────────────────────────────────────────────────────────────────┐
41 │ │ OpenGL Version │
42 ├──────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
43 │Function │ 2.0 │ 2.1 │ 3.0 │ 3.1 │ 3.2 │ 3.3 │ 4.0 │ 4.1 │ 4.2 │ 4.3 │ 4.4 │ 4.5 │
44 │/ │ │ │ │ │ │ │ │ │ │ │ │ │
45 │Feature │ │ │ │ │ │ │ │ │ │ │ │ │
46 │Name │ │ │ │ │ │ │ │ │ │ │ │ │
47 ├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
48 │glStencilMask │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
49 └──────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
50
52 glColorMask(), glDepthMask(), glStencilFunc(), glStencilFuncSeparate(),
53 glStencilMaskSeparate(), glStencilOp(), glStencilOpSeparate()
54
56 Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2010-2014
57 Khronos Group. This document is licensed under the SGI Free Software B
58 License. For details, see http://oss.sgi.com/projects/FreeB/.
59
61 Copyright © 1991-2006 Silicon Graphics, Inc.
62 Copyright © 2010-2014 Khronos Group
63
64
65
66[FIXME: source] 03/06/2019 GLSTENCILMASK(3G)