Function SDL_CalculateGammaRamp

pub unsafe extern "C" fn SDL_CalculateGammaRamp(
    gamma: f32,
    ramp: *mut u16,
)
Available on crate feature dep_sdl2 only.
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