Function sdl2_sys::SDL_CalculateGammaRamp
source ยท pub unsafe extern "C" fn SDL_CalculateGammaRamp(
gamma: f32,
ramp: *mut Uint16,
)
Expand description
Calculate a 256 entry gamma ramp for a gamma value.
\param gamma a gamma value where 0.0 is black and 1.0 is identity \param ramp an array of 256 values filled in with the gamma ramp
\since This function is available since SDL 2.0.0.
\sa SDL_SetWindowGammaRamp