REMOVEDTYPES(3G)
π REMOVEDTYPES β the removedTypes page, bestie (3G, OpenGL vibes) β¨
okay so real talk, this one's a little history lesson and it's lowkey fascinating, come sit with me π«Ά
β¨ NAME β¨
removedTypes β it literally describes the types that got removed and replaced in the OpenGL API when OpenGL 4.2 showed up π
πΈ DESCRIPTION πΈ
So here's the tea π: back in the May, 2012 glow-up of the OpenGL 4.2 Specification, every single API that was using the types GLclampf and GLclampd got edited to use GLfloat and GLdouble instead β respectively, no cap. π«
And they didn't just swap the names and dip. They added language to the Specification saying these parameters have to be clamped β but when it's required, at use time, not at specification time. Timing matters, periodt β°
Why is this iconic? Because now you can specify parameters in ranges that actually make sense for non-fixed-point framebuffers β that's your integer formats and your floating-point formats π
And the best part, the part that makes me emotional π: the change does not require any changes to user code calling these functions. Not one. Because:
- the actual underlying types are identical β literally twins π―
- the behavior is externally unchanged β vibe check passed π
- the header files continue to define the old types for compatibility with older code β they're keeping the old ones around out of pure loyalty π₯Ή
so basically: nothing broke, nobody had to touch their code, and everything's still slaying. we love a backwards-compatible queen π
π¦ SEE ALSO π¦
go read these, they're all part of the same story fr fr:
glBlendColor()glClearColor()glClearDepth()glDepthRange()glDepthRangeArray()glDepthRangeIndexed()glMinSampleShading()glSampleCoverage()
π COPYRIGHT π
Copyright Β© 2013-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
Copyright Β© 2013-2014 Khronos Group
and that's the whole page, bestie π source is [FIXME: source], dated 01/03/2018, and it goes out to you as REMOVEDTYPES(3G). stay clamped at use time, not specification time π
β¨π«Ά
π¦ where this page comes from
- ubuntu jammy: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- ubuntu noble: opengl-4-man-doc 1.0~svn33624-1 Β· SGI-Free-Software-B-License-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms