GLRESETMINMAX(3G)
β¨ 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'sGL_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_ENUMis generated iftargetis notGL_MINMAX. π«GL_INVALID_OPERATIONis generated ifglResetMinmaxis executed between the execution ofglBeginand the corresponding execution ofglEnd. 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
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms