GLSTENCILMASK(3G)
πΈ NAME πΈ
okay bestie, this is the glStencilMask manual page, and it lives in the GLSTENCILMASK(3G) glow-up zone ([FIXME: manual] set, no cap). It's literally about controlling the front and back writing of individual bits in the stencil planes. iconic behavior only π
β¨
π C SPECIFICATION π
void glStencilMask(GLuint mask);
π¦ PARAMETERS π¦
maskβ a bit mask that enables and disables writing of individual bits in the stencil planes. Initially, the mask is all 1's. periodt π
β¨ DESCRIPTION β¨
glStencilMask controls the writing of individual bits in the stencil planes, and yes, it's giving very precise little bit-level gatekeeper energy. The least significant n bits of mask, where n is the number of bits in the stencil buffer, specify a mask. Where a 1 appears in the mask, it's possible to write to the corresponding bit in the stencil buffer. Where a 0 appears, the corresponding bit is write-protected. Initially, all bits are enabled for writing. slay π₯
There can be two separate mask writemasks (that's the wording, bestie, we don't make the rules): one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. glStencilMask() sets both front and back stencil writemasks to the same values. Use glStencilMaskSeparate() to set front and back stencil writemasks to different values. iykyk π«Ά
π NOTES π
glStencilMask() is the same as calling glStencilMaskSeparate() with face set to GL_FRONT_AND_BACK. no extra drama, just facts π
π ASSOCIATED GETS π
glGet() with argument GL_STENCIL_WRITEMASK, GL_STENCIL_BACK_WRITEMASK, or GL_STENCIL_BITS.
π VERSION SUPPORT π
The glStencilMask function/feature name is fully supported β every check is β β for OpenGL versions:
2.0β β2.1β β3.0β β3.1β β3.2β β3.3β β4.0β β4.1β β4.2β β4.3β β4.4β β4.5β β
that's a clean sweep, bestie π§π
π SEE ALSO π
glColorMask()glDepthMask()glStencilFunc()glStencilFuncSeparate()glStencilMaskSeparate()glStencilOp()glStencilOpSeparate()
π COPYRIGHT π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.
π COPYRIGHT (yes, again, bestie) π
Copyright Β© 1991-2006 Silicon Graphics, Inc. Copyright Β© 2010-2014 Khronos Group
mwah π this page says [FIXME: source], dated 08/09/2021, and it's the GLSTENCILMASK(3G) manual page. periodt. π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms