[][src]Function fermium::surface::SDL_GetSurfaceColorMod

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

Get the additional color value used in blit operations.

  • surface: The surface to query.
  • r: A pointer filled in with the current red color value.
  • g: A pointer filled in with the current green color value.
  • b: A pointer filled in with the current blue color value.

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