SDL_Palette3
Color palette for 8-bit pixel formats
Structure definition
typedef struct{int ncolors;SDL_Color *colors;} SDL_Palette;
Structure data
|
Number of colors used in this palette |
|---|---|
|
Pointer to |
Overview
Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure store in SDL_PixelFormat. A SDL_Palette should never need to be created manually. It is automatically created when SDL allocates a SDL_PixelFormat for a surface. The colors values of a SDL_Surfaces palette can be set with the SDL_SetColors.
Releases
11 releases since Debian 3.0 (Woody); the text changed 1 time.