GLDEPTHMASK(3G)

πŸ“¦ version 24.3.3, in opensuse-leap 16.0

πŸŽ€ 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. If flag is GL_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