SDL_SetColorKey.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:2k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_SetColorKey" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_SetColorKey- Sets the color key (transparent pixel) in a blittable surface and RLE acceleration&.
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- .sp
- fBint fBSDL_SetColorKeyfPfR(fBSDL_Surface *surface, Uint32 flag, Uint32 keyfR);
- .SH "DESCRIPTION"
- .PP
- Sets the color key (transparent pixel) in a blittable surface and enables or disables RLE blit acceleration&.
- .PP
- RLE acceleration can substantially speed up blitting of images with large horizontal runs of transparent pixels (i&.e&., pixels that match the fBkeyfR value)&. The fBkeyfR must be of the same pixel format as the fBsurfacefR, fIfBSDL_MapRGBfPfR is often useful for obtaining an acceptable value&.
- .PP
- If fBflagfR is fBSDL_SRCCOLORKEYfP then fBkeyfR is the transparent pixel value in the source image of a blit&.
- .PP
- If fBflagfR is OR&'d with fBSDL_RLEACCELfP then the surface will be draw using RLE acceleration when drawn with fISDL_BlitSurfacefR&. The surface will actually be encoded for RLE acceleration the first time fISDL_BlitSurfacefR or fISDL_DisplayFormatfR is called on the surface&.
- .PP
- If fBflagfR is 0, this function clears any current color key&.
- .SH "RETURN VALUE"
- .PP
- This function returns fB0fR, or fB-1fR if there was an error&.
- .SH "SEE ALSO"
- .PP
- fIfBSDL_BlitSurfacefPfR, fIfBSDL_DisplayFormatfPfR, fIfBSDL_MapRGBfPfR, fIfBSDL_SetAlphafPfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01