Function sdl2_sys::SDL_SetSurfaceColorMod
source ยท pub unsafe extern "C" fn SDL_SetSurfaceColorMod(
surface: *mut SDL_Surface,
r: Uint8,
g: Uint8,
b: Uint8,
) -> c_int
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