Annotated edit history of
SDL_Palette(3) version 2, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
SDL_Palette |
| |
|
2 |
!!!SDL_Palette |
| |
|
3 |
NAME |
| |
|
4 |
STRUCTURE DEFINITION |
| |
|
5 |
STRUCTURE DATA |
| |
|
6 |
DESCRIPTION |
| |
|
7 |
SEE ALSO |
| |
|
8 |
---- |
| |
|
9 |
!!NAME |
| |
|
10 |
|
| |
|
11 |
|
| |
|
12 |
SDL_Palette- Color palette for 8-bit pixel formats |
| |
|
13 |
!!STRUCTURE DEFINITION |
| |
|
14 |
|
| |
|
15 |
|
| |
|
16 |
typedef struct{ |
| |
|
17 |
int ncolors; |
| |
|
18 |
SDL_Color *colors; |
| |
|
19 |
} SDL_Palette; |
| |
|
20 |
!!STRUCTURE DATA |
| |
|
21 |
|
| |
|
22 |
|
| |
|
23 |
__ncolors__ Number of colors used in this |
| |
|
24 |
palette |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
__colors__ Pointer to __SDL_Color__ structures that |
| |
|
28 |
make up the palette. |
| |
|
29 |
!!DESCRIPTION |
| |
|
30 |
|
| |
|
31 |
|
| |
|
32 |
Each pixel in an 8-bit surface is an index into the |
| |
|
33 |
__colors__ field of the __SDL_Palette__ structure |
| 2 |
perry |
34 |
store in __SDL_!PixelFormat__. A __SDL_Palette__ should |
| 1 |
perry |
35 |
never need to be created manually. It is automatically |
| 2 |
perry |
36 |
created when SDL allocates a __SDL_!PixelFormat__ for a |
| 1 |
perry |
37 |
surface. The colors values of a __SDL_Surface__s palette |
| 2 |
perry |
38 |
can be set with the __SDL_!SetColors__. |
| 1 |
perry |
39 |
!!SEE ALSO |
| |
|
40 |
|
| |
|
41 |
|
| 2 |
perry |
42 |
__SDL_Color__, __SDL_Surface__, __SDL_!SetColors |
| |
|
43 |
SDL_!SetPalette__ |
| 1 |
perry |
44 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.