GLRESETHISTOGRAM(3G)

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

πŸ’– glResetHistogram πŸ’–

okay bestie, welcome to the 3G manual page for glResetHistogram β€” yes that's the one, the glow-up reset button for your histogram table. let's get into it 🫢


✨ NAME ✨

glResetHistogram β€” reset histogram table entries to zero

like. it does exactly what it says on the tin. zeroes out the histogram table entries. no cap.


πŸŽ€ C SPECIFICATION πŸŽ€

void glResetHistogram( GLenum target )

that's the whole signature, gorgeous. one argument, no return value, iconic behavior.


πŸ¦‹ PARAMETERS πŸ¦‹

  • target β€” must be GL_HISTOGRAM. that's it. that's the only accepted vibe here. anything else and the errors section is gonna have a moment.

🌈 DESCRIPTION 🌈

glResetHistogram resets all the elements of the current histogram table to zero.

every single one. the whole table. zeroed. it's giving clean slate energy ✨


🌸 NOTES 🌸

glResetHistogram is present only if GL_ARB_imaging is returned when glGetString is called with an argument of GL_EXTENSIONS.

so like… if you're checking for it and it's not there, that's why. check your extensions first, bestie. iykyk πŸ’…


πŸ’… ERRORS πŸ’…

  • GL_INVALID_ENUM is generated if target is not GL_HISTOGRAM.
  • GL_INVALID_OPERATION is generated if glResetHistogram is executed between the execution of glBegin and the corresponding execution of glEnd.
fr fr do not call this one mid-glBegin/glEnd. the GL gods will simply not allow it. that's an operation error and it's not cute 😭

πŸ”₯ SEE ALSO πŸ”₯

  • glHistogram(3G)

go read that one too, it's the sister page, they're a matched set πŸ’œ


and that's a wrap on the GLRESETHISTOGRAM(3G) page, straight from the 3G manual, footer and all β€” mwah, bye bestie πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from