GLCLEARSTENCIL(3G)

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

🌸 NAME 🌸

okay bestie, this is GLCLEARSTENCIL(3G) β€” the manual page for glClearStencil, aka specify the clear value for the stencil buffer. πŸ’…βœ¨


🧚 C SPECIFICATION 🧚

void glClearStencil( GLint s )

πŸŽ€ PARAMETERS πŸŽ€

  • s β€” specifies the index used when the stencil buffer is cleared. The initial value is 0. 🫢

πŸ’– DESCRIPTION πŸ’–

glClearStencil specifies the index used by glClear to clear the stencil buffer. no cap. ✨

<pink>s</pink> is masked with 2mβˆ’1, where <purple>m</purple> is the number of bits in the stencil buffer. that masking detail is literally the whole vibe check, bestie. πŸ’…


πŸ’€ ERRORS πŸ’€

  • GL_INVALID_OPERATION is generated if glClearStencil is executed between the execution of glBegin and the corresponding execution of glEnd. 🚨
okay so this is the β€œnot while you’re inside glBegin/glEnd, bestie” rule. do not test it unless you enjoy GL_INVALID_OPERATION drama. 😭

πŸ” ASSOCIATED GETS πŸ”

  • glGet with argument GL_STENCIL_CLEAR_VALUE 🌟
  • glGet with argument GL_STENCIL_BITS 🌈

πŸ‘‘ SEE ALSO πŸ‘‘

  • glClear(3G) πŸ’œ
  • glStencilFunc(3G) πŸ¦‹
  • glStencilOp(3G) πŸ“
  • glStencilMask(3G) πŸŽ€

that’s the whole page, bestie β€” GLCLEARSTENCIL(3G) from the 3G OpenGL manual pages. the original footer didn’t print a separate source/version or date line, so I’m not inventing one. πŸ’–βœ¨

πŸ“¦ where this page comes from