SDL_Palette.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_Palette" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_Palette- Color palette for 8-bit pixel formats
- .SH "STRUCTURE DEFINITION"
- .PP
- .nf
- f(CWtypedef struct{
- int ncolors;
- SDL_Color *colors;
- } SDL_Palette;fR
- .fi
- .PP
- .SH "STRUCTURE DATA"
- .TP 20
- fBncolorsfR
- Number of colors used in this palette
- .TP 20
- fBcolorsfR
- Pointer to fIfBSDL_ColorfRfR structures that make up the palette&.
- .SH "DESCRIPTION"
- .PP
- Each pixel in an 8-bit surface is an index into the fBcolorsfR field of the fBSDL_PalettefR structure store in fIfBSDL_PixelFormatfRfR&. A fBSDL_PalettefR should never need to be created manually&. It is automatically created when SDL allocates a fBSDL_PixelFormatfR for a surface&. The colors values of a fIfBSDL_SurfacefRfRs palette can be set with the fIfBSDL_SetColorsfPfR&.
- .SH "SEE ALSO"
- .PP
- fIfBSDL_ColorfRfR, fIfBSDL_SurfacefRfR, fIfBSDL_SetColorsfPfR fIfBSDL_SetPalettefPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01