Function SDL_SetSurfaceColorMod
pub unsafe extern "C" fn SDL_SetSurfaceColorMod(
surface: *mut SDL_Surface,
r: u8,
g: u8,
b: u8,
) -> i32
Available on crate feature
dep_sdl2
only.Expand description
Set an additional color value multiplied into blit operations.
When this surface is blitted, during the blit operation each source color channel is modulated by the appropriate color value according to the following formula:
srcC = srcC * (color / 255)
\param surface the SDL_Surface structure to update \param r the red color value multiplied into blit operations \param g the green color value multiplied into blit operations \param b the blue color value multiplied into blit operations \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_GetSurfaceColorMod \sa SDL_SetSurfaceAlphaMod