glClampColor - specify whether data read via glReadPixels() should be clamped
Contents
Associated Gets
glGet() with argument GL_CLAMP_READ_COLOR.
C Specification
voidglClampColor(GLenumtarget,GLenumclamp);
Copyright
Copyright © 2010-2014 Khronos Group
[FIXME: source] 11/18/2024 GLCLAMPCOLOR(3G)
Description
glClampColor controls color clamping that is performed during glReadPixels(). 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.
Name
glClampColor - specify whether data read via glReadPixels() should be clamped
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.
See Also
Version Support
┌──────────────┬───────────────────────────────────────────────────────────────────────┐
│ │ OpenGLVersion │
├──────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
│ Function │ 2.0 │ 2.1 │ 3.0 │ 3.1 │ 3.2 │ 3.3 │ 4.0 │ 4.1 │ 4.2 │ 4.3 │ 4.4 │ 4.5 │
│ / │ │ │ │ │ │ │ │ │ │ │ │ │
│ Feature │ │ │ │ │ │ │ │ │ │ │ │ │
│ Name │ │ │ │ │ │ │ │ │ │ │ │ │
├──────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
│ glClampColor │ - │ - │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │ ✔ │
└──────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
