glfwSetGamma¶
Generates a gamma ramp and sets it for the specified monitor.
This function generates an appropriately sized gamma ramp from the specified
exponent and then calls glfwSetGammaRamp
with it. The value must be
a finite number greater than zero.
The software controlled gamma ramp is applied in addition to the hardware gamma correction, which today is usually an approximation of sRGB gamma. This means that setting a perfectly linear ramp, or gamma 1.0, will produce the default (usually sRGB-like) behavior.
For gamma correct rendering with OpenGL or OpenGL ES, see the @ref GLFW_SRGB_CAPABLE hint.
- arguments
-
\GLFWmonitor
$monitor
The monitor whose gamma ramp to set.float
$gamma
The desired exponent.
- returns
-
void