GLRESETMINMAX(3G)

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

✨ NAME ✨

glResetMinmax β€” reset minmax table entries to initial values πŸ’–

okay so bestie, this one is short and sweet, it's the "undo button" of the minmax world, no cap.


πŸŽ€ C SPECIFICATION πŸŽ€

void glResetMinmax( GLenum target )

🌸 PARAMETERS 🌸

  • target β€” has exactly one valid value and it's GL_MINMAX. That's it. That's the whole vibe check. Anything else and it's giving error energy (see ERRORS below, we'll get there 🫢).

πŸ¦‹ DESCRIPTION πŸ¦‹

glResetMinmax resets the elements of the current minmax table back to their initial values. Fresh out the box. Factory settings. Periodt. πŸ’…

And here's the iconic little plot twist, the part that lowkey looks like a typo but fr fr is not:

  • the "maximum" element receives the minimum possible component values 😭
  • the "minimum" element receives the maximum possible component values 😭

yes babe, it's flipped like that on purpose, that's the reset state, that's how you know the table hasn't been touched yet. the way that a "max" slot holding the smallest possible values is literally the correct starting point… obsessed. πŸ‘‘


🌈 NOTES 🌈

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

translation: check that your implementation actually ships the imaging extension before you go calling this, otherwise it's just not there. iykyk πŸ”₯


πŸ’€ ERRORS πŸ’€

  • GL_INVALID_ENUM is generated if target is not GL_MINMAX. 🚫
  • GL_INVALID_OPERATION is generated if glResetMinmax is executed between the execution of glBegin and the corresponding execution of glEnd. not me trying to reset the minmax table mid-glBegin… girl NO. wait until you're outside that pair, okay? πŸ™ˆ

⭐ SEE ALSO ⭐

  • glMinmax(3G) πŸ’œ

this lil page is GLRESETMINMAX(3G) from the 3G manual, and the footer just repeats GLRESETMINMAX(3G) at the bottom, so that's our source + version + date situation right there. bye bestie, go reset something πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ«Ά

πŸ“¦ where this page comes from