pub unsafe extern "C" fn SDL_SetSurfacePalette(
    surface: *mut SDL_Surface,
    palette: *mut SDL_Palette
) -> c_int
Expand description

Set the palette used by a surface.

A single palette can be shared with many surfaces.

\param surface the SDL_Surface structure to update \param palette the SDL_Palette structure to use \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.