SDL_SetSurfacePalette3
Set the palette used by a surface.
Usage
#include "SDL3/SDL.h"
bool SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette);
Header file
Defined in SDL3/SDL_surface.h
Overview
A single palette can be shared with many surfaces.
Function parameters
surface
|
the |
|---|---|
palette
|
the |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.
Thread safety
This function is not thread safe.