GLCLAMPCOLOR(3G)

πŸŽ€ glClampColor: clamp it, bestie πŸŽ€

okay so this is GLCLAMPCOLOR(3G) from the [FIXME: manual] manual, and it’s literally all about one function: glClampColor. It’s giving β€œone job, very specific vibe” energy πŸ’…βœ¨

🌸 NAME 🌸

glClampColor β€” specify whether data read via glReadPixels() should be clamped.

πŸ’» C SPECIFICATION πŸ’»

void glClampColor(GLenum target, GLenum clamp);

🧚 PARAMETERS 🧚

  • target β€” Target for color clamping. target must be GL_CLAMP_READ_COLOR. πŸ’…
  • clamp β€” Specifies whether to apply color clamping. clamp must be GL_TRUE or GL_FALSE. ✨

πŸ’– DESCRIPTION πŸ’–

glClampColor controls color clamping that is performed during glReadPixels(). Vibe check: target must be GL_CLAMP_READ_COLOR. If clamp is GL_TRUE, read color clamping is enabled; if clamp is GL_FALSE, read color clamping is disabled. If clamp is GL_FIXED_ONLY, read color clamping is enabled only if the selected read buffer has fixed point components and disabled otherwise. 🫢

πŸ’€ ERRORS πŸ’€

  • GL_INVALID_ENUM is generated if target is not GL_CLAMP_READ_COLOR.
  • GL_INVALID_ENUM is generated if clamp is not GL_TRUE or GL_FALSE.

πŸ” ASSOCIATED GETS πŸ”

glGet() with argument GL_CLAMP_READ_COLOR.

πŸ‘‘ VERSION SUPPORT πŸ‘‘

OpenGL version support for the function/feature name glClampColor, no cap:

  • Function / Feature Name: glClampColor
  • OpenGL 2.0: -
  • OpenGL 2.1: -
  • OpenGL 3.0: βœ”
  • OpenGL 3.1: βœ”
  • OpenGL 3.2: βœ”
  • OpenGL 3.3: βœ”
  • OpenGL 4.0: βœ”
  • OpenGL 4.1: βœ”
  • OpenGL 4.2: βœ”
  • OpenGL 4.3: βœ”
  • OpenGL 4.4: βœ”
  • OpenGL 4.5: βœ”

πŸ‘€ SEE ALSO πŸ‘€

This section is empty in the original β€” literally no references listed, bestie. πŸ¦‹

Copyright Β© 2010-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 Β© 2010-2014 Khronos Group


That’s the whole page, bestie. Footer vibes: [FIXME: source], dated 08/09/2021 β€” periodt. bye bestie πŸ«ΆπŸ’–

πŸ“¦ where this page comes from