Provided by: libsdl3-doc_3.2.20+ds-2_all 

NAME
SDL_SetSurfacePalette - Set the palette used by a surface.
SYNOPSIS
#include <SDL3/SDL_surface.h>
bool SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette);
DESCRIPTION
A single palette can be shared with many surfaces.
FUNCTION PARAMETERS
surface
the SDL_Surface structure to update.
palette
the SDL_Palette structure to use.
RETURN VALUE
for more information.
THREAD SAFETY
This function is not thread safe.
AVAILABILITY
This function is available since SDL 3.2.0.
SEE ALSO
SDL_CreatePalette(3), SDL_GetSurfacePalette(3)
Simple Directmedia Layer SDL 3.2.20 SDL_SetSurfacePalette(3)