GLDEPTHMASK(3G)
π NAME π
okay so bestie, this is glDepthMask, from the 3G manual β the little function that enables or disables writing into the depth buffer. literally its whole main character job. π
β¨
π» C SPECIFICATION π»
void glDepthMask( GLboolean flag )
π¦ PARAMETERS π¦
flagβ specifies whether the depth buffer is enabled for writing. IfflagisGL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. And bestie, initially, depth buffer writing is enabled. ππ«Ά
β¨ 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. thatβs the vibe check, no cap β simple but iconic. ππ
π ERRORS π
GL_INVALID_OPERATION is generated if glDepthMask is executed between the execution of glBegin and the corresponding execution of glEnd. so ngl, do not slide this call into a glBegin/glEnd block β thatβs the forbidden sandwich, fr fr. π₯ͺπ
π ASSOCIATED GETS π
the associated get is glGet with argument GL_DEPTH_WRITEMASK. π«Ά
πΈ SEE ALSO πΈ
glColorMask(3G)glDepthFunc(3G)glDepthRange(3G)glIndexMask(3G)glStencilMask(3G)
later, bestie β this pageβs footer has no source/version or date printed, so Iβm signing off with just the 3G manual energy and zero invented facts. catch u next page ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms