GLFW
3.0.1
A multi-platform library for OpenGL, window and input
|
Data Structures | |
struct | GLFWgammaramp |
Gamma ramp. More... | |
Functions | |
void | glfwSetGamma (GLFWmonitor *monitor, float gamma) |
Generates a gamma ramp and sets it for the specified monitor. More... | |
const GLFWgammaramp * | glfwGetGammaRamp (GLFWmonitor *monitor) |
Retrieves the current gamma ramp for the specified monitor. More... | |
void | glfwSetGammaRamp (GLFWmonitor *monitor, const GLFWgammaramp *ramp) |
Sets the current gamma ramp for the specified monitor. More... | |
const GLFWgammaramp* glfwGetGammaRamp | ( | GLFWmonitor * | monitor | ) |
This function retrieves the current gamma ramp of the specified monitor.
[in] | monitor | The monitor to query. |
NULL
if an error occurred.void glfwSetGamma | ( | GLFWmonitor * | monitor, |
float | gamma | ||
) |
This function generates a 256-element gamma ramp from the specified exponent and then calls glfwSetGammaRamp with it.
[in] | monitor | The monitor whose gamma ramp to set. |
[in] | gamma | The desired exponent. |
void glfwSetGammaRamp | ( | GLFWmonitor * | monitor, |
const GLFWgammaramp * | ramp | ||
) |
This function sets the current gamma ramp for the specified monitor.
[in] | monitor | The monitor whose gamma ramp to set. |
[in] | ramp | The gamma ramp to use. |