Function SDL_SetSurfacePalette

pub unsafe extern "C" fn SDL_SetSurfacePalette(
    surface: *mut SDL_Surface,
    palette: *mut SDL_Palette,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Set the palette used by a surface.

A single palette can be shared with many surfaces.

§Parameters

§Return value

Returns true on success or false on failure; call SDL_GetError() for more information.

§Availability

This function is available since SDL 3.2.0.

§See also