| SDL_SetPaletteColors(3) | SDL3 FUNCTIONS | SDL_SetPaletteColors(3) |
SDL_SetPaletteColors - Set a range of colors in a palette.
Defined in SDL3/SDL_pixels.h
#include "SDL3/SDL.h"
bool SDL_SetPaletteColors(SDL_Palette *palette, const SDL_Color *colors, int firstcolor, int ncolors);
Returns true on success or false on failure; call
SDL_GetError () for more information.
It is safe to call this function from any thread, as long as the palette is not modified or destroyed in another thread.
This function is available since SDL 3.2.0.
| SDL 3.2.10 | Simple Directmedia Layer |