SDL_Palette - A set of indexed colors representing a palette.
Contents
Availability
This struct is available since SDL 3.2.0.
Header File
Defined in SDL3/SDL_pixels.h
Name
SDL_Palette - A set of indexed colors representing a palette.
See Also
•(3), SDL_SetPaletteColors(3) Simple Directmedia Layer SDL 3.2.10 SDL_Palette(3type)
Synopsis
#include"SDL3/SDL.h"typedefstructSDL_Palette{intncolors;/**<numberofelementsin`colors`.*/SDL_Color*colors;/**<anarrayofcolors,`ncolors`long.*/Uint32version;/**<internaluseonly,donottouch.*/intrefcount;/**<internaluseonly,donottouch.*/}SDL_Palette;