[−][src]Function fermium::pixels::SDL_SetPaletteColors
pub unsafe extern "C" fn SDL_SetPaletteColors(
palette: *mut SDL_Palette,
colors: *const SDL_Color,
firstcolor: c_int,
ncolors: c_int
) -> c_int
Set a range of colors in a palette.
palette
: The palette to modify.colors
: An array of colors to copy into the palette.firstcolor
: The index of the first palette entry to modify.ncolors
: The number of entries to modify.
Return: 0 on success, or -1 if not all of the colors could be set.