version 2, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
SDL_CreateRGBSurface |
|
|
2 |
!!!SDL_CreateRGBSurface |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
SDL_CreateRGBSurface- Create an empty SDL_Surface |
|
|
12 |
!!SYNOPSIS |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
__#include __ |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__SDL_Surface *SDL_CreateRGBSurface__(__Uint32 flags, |
|
|
19 |
int width, int height, int depth, Uint32 Rmask, Uint32 |
|
|
20 |
Gmask, Uint32 Bmask, Uint32 Amask__); |
|
|
21 |
!!DESCRIPTION |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
Allocate an empty surface (must be called after |
2 |
perry |
25 |
''SDL_!SetVideoMode'') |
1 |
perry |
26 |
|
|
|
27 |
|
|
|
28 |
If __depth__ is 8 bits an empty palette is allocated for |
|
|
29 |
the surface, otherwise a 'packed-pixel' |
2 |
perry |
30 |
__SDL_!PixelFormat__ is created using the |
|
|
31 |
__[[RGBA]mask__'s provided (see __SDL_!PixelFormat__). |
1 |
perry |
32 |
The __flags__ specifies the type of surface that should |
|
|
33 |
be created, it is an OR'd combination of the following |
|
|
34 |
possible values. |
|
|
35 |
|
|
|
36 |
|
|
|
37 |
__SDL_SWSURFACE__ |
|
|
38 |
|
|
|
39 |
|
|
|
40 |
SDL will create the surface in system memory. This improves |
|
|
41 |
the performance of pixel level access, however you may not |
|
|
42 |
be able to take advantage of some types of hardware |
|
|
43 |
blitting. |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
__SDL_HWSURFACE__ |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
SDL will attempt to create the surface in video memory. This |
|
|
50 |
will allow SDL to take advantage of Video- |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
__SDL_SRCCOLORKEY__ |
|
|
54 |
|
|
|
55 |
|
|
|
56 |
With this flag SDL will attempt to find the best location |
|
|
57 |
for this surface, either in system memory or video memory, |
|
|
58 |
to obtain hardware colorkey blitting support. |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
__SDL_SRCALPHA__ With this flag SDL will attempt to find |
|
|
62 |
the best location for this surface, either in system memory |
|
|
63 |
or video memory, to obtain hardware alpha |
|
|
64 |
support |
|
|
65 |
!!SEE ALSO |
|
|
66 |
|
|
|
67 |
|
2 |
perry |
68 |
__SDL_CreateRGBSurfaceFrom__, __SDL_!FreeSurface__, |
|
|
69 |
__SDL_!SetVideoMode__, __SDL_!LockSurface__, |
|
|
70 |
__SDL_!PixelFormat__, __SDL_Surface__ |
1 |
perry |
71 |
---- |