SDL_DisplayFormatAlpha.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:1k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_DisplayFormatAlpha" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_DisplayFormatAlpha- Convert a surface to the display format
- .SH "SYNOPSIS"
- .PP
- fB#include "SDL&.h"
- .sp
- fBSDL_Surface *fBSDL_DisplayFormatAlphafPfR(fBSDL_Surface *surfacefR);
- .SH "DESCRIPTION"
- .PP
- This function takes a surface and copies it to a new surface of the pixel format and colors of the video framebuffer plus an alpha channel, suitable for fast blitting onto the display surface&. It calls fISDL_ConvertSurfacefR
- .PP
- If you want to take advantage of hardware colorkey or alpha blit acceleration, you should set the colorkey and alpha value before calling this function&.
- .PP
- This function can be used to convert a colourkey to an alpha channel, if the fBSDL_SRCCOLORKEYfP flag is set on the surface&. The generated surface will then be transparent (alpha=0) where the pixels match the colourkey, and opaque (alpha=255) elsewhere&.
- .SH "RETURN VALUE"
- .PP
- If the conversion fails or runs out of memory, it returns fBNULLfR
- .SH "SEE ALSO"
- .PP
- fISDL_ConvertSurfacefR, fISDL_SetAlphafR, fISDL_SetColorKeyfR, fISDL_DisplayFormatfR, fISDL_SurfacefR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01