GLFW  3.0.1
A multi-platform library for OpenGL, window and input
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Data Structures | Functions
Gamma ramp support

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 GLFWgammarampglfwGetGammaRamp (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...
 

Detailed Description

Function Documentation

const GLFWgammaramp* glfwGetGammaRamp ( GLFWmonitor monitor)

This function retrieves the current gamma ramp of the specified monitor.

Parameters
[in]monitorThe monitor to query.
Returns
The current gamma ramp, or NULL if an error occurred.
Note
The value arrays of the returned ramp are allocated and freed by GLFW. You should not free them yourself.
void glfwSetGamma ( GLFWmonitor monitor,
float  gamma 
)

This function generates a 256-element gamma ramp from the specified exponent and then calls glfwSetGammaRamp with it.

Parameters
[in]monitorThe monitor whose gamma ramp to set.
[in]gammaThe desired exponent.
void glfwSetGammaRamp ( GLFWmonitor monitor,
const GLFWgammaramp ramp 
)

This function sets the current gamma ramp for the specified monitor.

Parameters
[in]monitorThe monitor whose gamma ramp to set.
[in]rampThe gamma ramp to use.
Note
Gamma ramp sizes other than 256 are not supported by all hardware.