SDL_SetSurfacePalette

Set the palette used by a surface.

A single palette can be shared with many surfaces.

extern (C) nothrow @nogc extern
bool
SDL_SetSurfacePalette

Parameters

surface SDL_Surface*

the SDL_Surface structure to update.

palette SDL_Palette*

the SDL_Palette structure to use.

Return Value

Type: bool

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

See Also

Meta