GLCLEARACCUM(3G)
π 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 all0, 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_OPERATIONis generated ifglClearAccumis executed between the execution ofglBeginand the corresponding execution ofglEnd.
okay this one matters: do NOT call this in the middle of aglBegin/glEndsandwich. the GL will simply say no and throwGL_INVALID_OPERATIONat you. we've all been there. we don't talk about it π
π₯ ASSOCIATED GETS π₯
glGetwith argumentGL_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
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- fedora 43: gl-manpages 1.1-34.20190306.fc43 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- fedora 44: gl-manpages 1.1-35.20190306.fc44 Β· Apache-2.0 AND HPND AND HPND-sell-variant AND MIT AND OpenPBS-2.3 AND SGI-B-2.0 AND W3C-19980720 AND X11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms