Function fermium::surface::SDL_SetSurfaceColorMod[][src]

pub unsafe extern "C" fn SDL_SetSurfaceColorMod(
    surface: *mut SDL_Surface,
    r: u8,
    g: u8,
    b: u8
) -> c_int

Set an additional color value used in blit operations.

  • surface: The surface to update.
  • r: The red color value multiplied into blit operations.
  • g: The green color value multiplied into blit operations.
  • b: The blue color value multiplied into blit operations.

Return: 0 on success, or -1 if the surface is not valid.