REMOVEDTYPES(3G)

πŸ“¦
version 1.0~svn33624 Β· 4 versions
, in ubuntu jammy, ubuntu noble

πŸ’… 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 Β© 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