SDL_Surface.3
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:3k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- .TH "SDL_Surface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
- .SH "NAME"
- SDL_Surface- Graphical Surface Structure
- .SH "STRUCTURE DEFINITION"
- .PP
- .nf
- f(CWtypedef struct SDL_Surface {
- Uint32 flags; /* Read-only */
- SDL_PixelFormat *format; /* Read-only */
- int w, h; /* Read-only */
- Uint16 pitch; /* Read-only */
- void *pixels; /* Read-write */
- /* clipping information */
- SDL_Rect clip_rect; /* Read-only */
- /* Reference count -- used when freeing surface */
- int refcount; /* Read-mostly */
- /* This structure also contains private fields not shown here */
- } SDL_Surface;fR
- .fi
- .PP
- .SH "STRUCTURE DATA"
- .TP 20
- fBflagsfR
- Surface flags
- .TP 20
- fBformatfR
- Pixel fIformatfR
- .TP 20
- fBw, hfR
- Width and height of the surface
- .TP 20
- fBpitchfR
- Length of a surface scanline in bytes
- .TP 20
- fBpixelsfR
- Pointer to the actual pixel data
- .TP 20
- fBclip_rectfR
- surface clip fIrectanglefR
- .SH "DESCRIPTION"
- .PP
- fBSDL_SurfacefR&'s represent areas of "graphical" memory, memory that can be drawn to&. The video framebuffer is returned as a fBSDL_SurfacefR by fIfBSDL_SetVideoModefPfR and fIfBSDL_GetVideoSurfacefPfR&. Most of the fields should be pretty obvious&. fBwfR and fBhfR are the width and height of the surface in pixels&. fBpixelsfR is a pointer to the actual pixel data, the surface should be fIlockedfR before accessing this field&. The fBclip_rectfR field is the clipping rectangle as set by fIfBSDL_SetClipRectfPfR&.
- .PP
- The following are supported in the fBflagsfR field&.
- .TP 20
- fBSDL_SWSURFACEfP
- Surface is stored in system memory
- .TP 20
- fBSDL_HWSURFACEfP
- Surface is stored in video memory
- .TP 20
- fBSDL_ASYNCBLITfP
- Surface uses asynchronous blits if possible
- .TP 20
- fBSDL_ANYFORMATfP
- Allows any pixel-format (Display surface)
- .TP 20
- fBSDL_HWPALETTEfP
- Surface has exclusive palette
- .TP 20
- fBSDL_DOUBLEBUFfP
- Surface is double buffered (Display surface)
- .TP 20
- fBSDL_FULLSCREENfP
- Surface is full screen (Display Surface)
- .TP 20
- fBSDL_OPENGLfP
- Surface has an OpenGL context (Display Surface)
- .TP 20
- fBSDL_OPENGLBLITfP
- Surface supports OpenGL blitting (Display Surface)
- .TP 20
- fBSDL_RESIZABLEfP
- Surface is resizable (Display Surface)
- .TP 20
- fBSDL_HWACCELfP
- Surface blit uses hardware acceleration
- .TP 20
- fBSDL_SRCCOLORKEYfP
- Surface use colorkey blitting
- .TP 20
- fBSDL_RLEACCELfP
- Colorkey blitting is accelerated with RLE
- .TP 20
- fBSDL_SRCALPHAfP
- Surface blit uses alpha blending
- .TP 20
- fBSDL_PREALLOCfP
- Surface uses preallocated memory
- .SH "SEE ALSO"
- .PP
- fIfBSDL_PixelFormatfRfR
- ..." created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01