Mercurial > sdl-ios-xcode
comparison docs/man3/SDL_Palette.3 @ 55:55f1f1b3e27d
Added new docs for SDL 1.2.1
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Sun, 10 Jun 2001 19:31:57 +0000 |
parents | 74212992fb08 |
children | e5bc29de3f0a |
comparison
equal
deleted
inserted
replaced
54:028447a8a758 | 55:55f1f1b3e27d |
---|---|
1 .TH "SDL_Palette" "3" "Mon 12 Mar 2001, 01:04" "SDL" "SDL API Reference" | 1 .TH "SDL_Palette" "3" "Sun 10 Jun 2001, 19:42" "SDL" "SDL API Reference" |
2 .SH "NAME" | 2 .SH "NAME" |
3 SDL_Palette\- Color palette for 8-bit pixel formats | 3 SDL_Palette\- Color palette for 8-bit pixel formats |
4 .SH "STRUCTURE DEFINITION" | 4 .SH "STRUCTURE DEFINITION" |
5 .PP | 5 .PP |
6 .nf | 6 .nf |
21 .PP | 21 .PP |
22 Each pixel in an 8-bit surface is an index into the \fBcolors\fR field of the \fBSDL_Palette\fR structure store in \fI\fBSDL_PixelFormat\fR\fR\&. A \fBSDL_Palette\fR should never need to be created manually\&. It is automatically created when SDL allocates a \fBSDL_PixelFormat\fR for a surface\&. The colors values of a \fI\fBSDL_Surface\fR\fRs palette can be set with the \fI\fBSDL_SetColors\fP\fR\&. | 22 Each pixel in an 8-bit surface is an index into the \fBcolors\fR field of the \fBSDL_Palette\fR structure store in \fI\fBSDL_PixelFormat\fR\fR\&. A \fBSDL_Palette\fR should never need to be created manually\&. It is automatically created when SDL allocates a \fBSDL_PixelFormat\fR for a surface\&. The colors values of a \fI\fBSDL_Surface\fR\fRs palette can be set with the \fI\fBSDL_SetColors\fP\fR\&. |
23 .SH "SEE ALSO" | 23 .SH "SEE ALSO" |
24 .PP | 24 .PP |
25 \fI\fBSDL_Color\fR\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_SetColors\fP\fR \fI\fBSDL_SetPalette\fP\fR | 25 \fI\fBSDL_Color\fR\fR, \fI\fBSDL_Surface\fR\fR, \fI\fBSDL_SetColors\fP\fR \fI\fBSDL_SetPalette\fP\fR |
26 ...\" created by instant / docbook-to-man, Mon 12 Mar 2001, 01:04 | 26 ...\" created by instant / docbook-to-man, Sun 10 Jun 2001, 19:42 |