SDL_GetGammaRamp
Use this function to get the gamma ramp for the currently selected display.
Syntax
int SDL_GetGammaRamp(Uint16* red,
Uint16* green,
Uint16* blue)
Function Parameters
red |
a pointer to an array of 256 values filled in with the translation table for the red channel, or NULL |
green |
a pointer to an array of 256 values filled in with the translation table for the green channel, or NULL |
blue |
a pointer to an array of 256 values filled in with the translation table for the blue channel, or NULL |
Return Value
Returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
Not all display hardware is able to change gamma; it will return -1 if gamma is unsupported.
You can pass NULL for any of the channels if you don't need those values.