GLCLEARACCUM(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸ’– GLCLEARACCUM πŸ’–

ok so bestie, welcome to glClearAccum β€” it's a 3G manual page (OpenGL gang, iykyk) and it's literally the glow-up button for your accumulation buffer's clear colour. sit with me, this one's short and sweet fr fr ✨


🌸 NAME 🌸

glClearAccum β€” specify clear values for the accumulation buffer

like. it picks the colours. that's the whole job. queen behaviour honestly πŸ‘‘


πŸŽ€ C SPECIFICATION πŸŽ€

void glClearAccum( GLfloat red,
                   GLfloat green,
                   GLfloat blue,
                   GLfloat alpha )

no cap, that's the whole signature. four floats, zero drama πŸ’…


πŸ¦‹ PARAMETERS πŸ¦‹

  • red, green, blue, alpha β€” these four cuties specify the red, green, blue, and alpha values used when the accumulation buffer is cleared. the initial values are all 0, so out of the box it's giving ✨nothing✨. set them and suddenly you have opinions about colour 🌈

✨ DESCRIPTION ✨

glClearAccum specifies the red, green, blue, and alpha values used by glClear to clear the accumulation buffer.

so like β€” glClearAccum is the one who decides, and glClear is the one who does. a duo. a duo!! 🫢

values specified by glClearAccum are clamped to the range [-1, 1]. that's the vibe check. step outside it and you get gently, lovingly shoved back in 🧚


πŸ’€ ERRORS πŸ’€

  • GL_INVALID_OPERATION is generated if glClearAccum is executed between the execution of glBegin and the corresponding execution of glEnd.
okay this one matters: do NOT call this in the middle of a glBegin/glEnd sandwich. the GL will simply say no and throw GL_INVALID_OPERATION at you. we've all been there. we don't talk about it 😭

πŸ”₯ ASSOCIATED GETS πŸ”₯

  • glGet with argument GL_ACCUM_CLEAR_VALUE β€” that's how you peek at what you set. receipts, basically 🧾

🌈 SEE ALSO 🌈

  • glAccum(3G)
  • glClear(3G)

go read those too, they're in the same friend group πŸ’œ


ok that's the whole page, you ate that πŸ“ this was GLCLEARACCUM(3G) β€” the 3G manual, the OpenGL one β€” and yeah the footer's just the same name again because this page is that self-obsessed, main character energy only. byeee, go clear something πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from