SDL_SetPalette (3) Linux Manual Page
SDL_SetPalette – Sets the colors in the palette of an 8-bit surface. Synopsis#include "SDL.h" int SDL_SetPalette(SDL_Surface *surface, int flags, SDL_Color *colors, int firstcolor, int ncolors); DescriptionSets a portion of the palette for the given 8-bit surface. Palettized (8-bit) screen surfaces with the SDL_HWPALETTE flag have two palettes, a logical palette that is used for mapping…
