0
|
1 .TH "SDL_CreateRGBSurface" "3" "Mon 12 Mar 2001, 01:04" "SDL" "SDL API Reference"
|
|
2 .SH "NAME"
|
|
3 SDL_CreateRGBSurface\- Create an empty SDL_Surface
|
|
4 .SH "SYNOPSIS"
|
|
5 .PP
|
|
6 \fB#include "SDL\&.h"
|
|
7 .sp
|
|
8 \fBSDL_Surface *\fBSDL_CreateRGBSurface\fP\fR(\fBUint32 flags, int width, int height, int depth, Uint32 Rmask, Uint32 Gmask, Uint32 Bmask, Uint32 Amask\fR);
|
|
9 .SH "DESCRIPTION"
|
|
10 .PP
|
|
11 Allocate an empty surface (must be called after \fISDL_SetVideoMode\fR)
|
|
12 .PP
|
|
13 If \fBdepth\fR is 8 bits an empty palette is allocated for the surface, otherwise a \&'packed-pixel\&' \fI\fBSDL_PixelFormat\fR\fR is created using the \fB[RGBA]mask\fR\&'s provided (see \fI\fBSDL_PixelFormat\fR\fR)\&. The \fBflags\fR specifies the type of surface that should be created, it is an OR\&'d combination of the following possible values\&.
|
|
14 .TP 20
|
|
15 \fBSDL_SWSURFACE\fP
|
|
16 SDL will create the surface in system memory\&. This improves the performance of pixel level access, however you may not be able to take advantage of some types of hardware blitting\&.
|
|
17 .TP 20
|
|
18 \fBSDL_HWSURFACE\fP
|
|
19 SDL will attempt to create the surface in video memory\&. This will allow SDL to take advantage of Video->Video blits (which are often accelerated)\&.
|
|
20 .TP 20
|
|
21 \fBSDL_SRCCOLORKEY\fP
|
|
22 With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware colorkey blitting support\&.
|
|
23 .TP 20
|
|
24 \fBSDL_SRCALPHA\fP
|
|
25 With this flag SDL will attempt to find the best location for this surface, either in system memory or video memory, to obtain hardware alpha support
|
|
26 .SH "SEE ALSO"
|
|
27 .PP
|
|
28 \fI\fBSDL_CreateRGBSurfaceFrom\fP\fR, \fI\fBSDL_FreeSurface\fP\fR, \fI\fBSDL_SetVideoMode\fP\fR, \fI\fBSDL_LockSurface\fP\fR, \fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_Surface\fR\fR
|
|
29 ...\" created by instant / docbook-to-man, Mon 12 Mar 2001, 01:04
|