|
Size: 991
Comment:
|
Size: 1407
Comment: update content (old wiki)
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 21: | Line 21: |
| ''You can add useful comments here'' | *<<BR>>Each pixel in an 8-bit surface is an index into the '''colors''' field of the [[SDL_Palette]] structure stored in [[SDL_PixelFormat]]. An [[SDL_Palette]] should never need to be created manually. It is automatically created when SDL allocates an [[SDL_PixelFormat]] for a surface. The '''colors''' values of an [[SDL_Surface]]'s palette can be set with [[SDL_SetColors]](). <<Color2(green,Is SDL_!SetColors now SDL_SetPaletteColors?)>><<BR>>* |
SDL_Palette
A structure that contains palette information.
Data Fields
int |
ncolors |
the number of colors in the palette |
colors |
an array of colors in the palette |
|
int |
refcount |
reference count (internal use) |
SDL_PaletteWatch* |
watch |
a list of callbacks called when this palette has changed (internal use) |
Code Examples
You can add your code example here
Remarks
*
Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure stored in SDL_PixelFormat. An SDL_Palette should never need to be created manually. It is automatically created when SDL allocates an SDL_PixelFormat for a surface. The colors values of an SDL_Surface's palette can be set with SDL_SetColors().
green
*
Related Structures
