logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_Palette - A set of indexed colors representing a palette.

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;

See Also