Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_Palette(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_Palette !!!SDL_Palette NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_Palette- Color palette for 8-bit pixel formats !!STRUCTURE DEFINITION typedef struct{ int ncolors; SDL_Color *colors; } SDL_Palette; !!STRUCTURE DATA __ncolors__ Number of colors used in this palette __colors__ Pointer to __SDL_Color__ structures that make up the palette. !!DESCRIPTION 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_Surface__s palette can be set with the __SDL_!SetColors__. !!SEE ALSO __SDL_Color__, __SDL_Surface__, __SDL_!SetColors SDL_!SetPalette__ ----
One page links to
SDL_Palette(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.