Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5131 clevermous 1
2
>
3
>
4
>SDL_DisplayFormatAlpha
5
>
6
NAME="GENERATOR"
7
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
8
">
9
REL="HOME"
10
TITLE="SDL Library Documentation"
11
HREF="index.html">
12
REL="UP"
13
TITLE="Video"
14
HREF="video.html">
15
REL="PREVIOUS"
16
TITLE="SDL_DisplayFormat"
17
HREF="sdldisplayformat.html">
18
REL="NEXT"
19
TITLE="SDL_WarpMouse"
20
HREF="sdlwarpmouse.html">
21
>
22
CLASS="REFENTRY"
23
BGCOLOR="#FFF8DC"
24
TEXT="#000000"
25
LINK="#0000ee"
26
VLINK="#551a8b"
27
ALINK="#ff0000"
28
>
29
CLASS="NAVHEADER"
30
>
31
WIDTH="100%"
32
BORDER="0"
33
CELLPADDING="0"
34
CELLSPACING="0"
35
>
36
>
37
COLSPAN="3"
38
ALIGN="center"
39
>SDL Library Documentation
40
>
41
>
42
>
43
WIDTH="10%"
44
ALIGN="left"
45
VALIGN="bottom"
46
>
47
HREF="sdldisplayformat.html"
48
>Prev
49
>
50
>
51
WIDTH="80%"
52
ALIGN="center"
53
VALIGN="bottom"
54
>
55
>
56
WIDTH="10%"
57
ALIGN="right"
58
VALIGN="bottom"
59
>
60
HREF="sdlwarpmouse.html"
61
>Next
62
>
63
>
64
>
65
>
66
ALIGN="LEFT"
67
WIDTH="100%">
68
>
69
>
70
NAME="SDLDISPLAYFORMATALPHA"
71
>SDL_DisplayFormatAlpha
72
>
73
>
74
CLASS="REFNAMEDIV"
75
>
76
NAME="AEN2013"
77
>
78
>
79
>Name
80
>SDL_DisplayFormatAlpha -- Convert a surface to the display format
81
>
82
CLASS="REFSYNOPSISDIV"
83
>
84
NAME="AEN2016"
85
>
86
>
87
>Synopsis
88
>
89
CLASS="FUNCSYNOPSIS"
90
>
91
NAME="AEN2017"
92
>
93
>
94
>
95
>
96
CLASS="FUNCSYNOPSISINFO"
97
>#include "SDL.h"
98
>
99
>
100
>
101
CLASS="FUNCDEF"
102
>SDL_Surface *
103
CLASS="FSFUNC"
104
>SDL_DisplayFormatAlpha
105
>
106
>(SDL_Surface *surface);
107
>
108
>
109
>
110
>
111
>
112
>
113
CLASS="REFSECT1"
114
>
115
NAME="AEN2023"
116
>
117
>
118
>Description
119
>
120
>This function takes a surface and copies it to a new surface of the
121
pixel format and colors of the video framebuffer plus an alpha channel,
122
suitable for fast blitting onto the display surface.  It calls
123
124
HREF="sdlconvertsurface.html"
125
>SDL_ConvertSurface
126
>
127
>
128
>If you want to take advantage of hardware colorkey or alpha blit
129
acceleration, you should set the colorkey and alpha value before
130
calling this function.
131
>
132
>This function can be used to convert a colourkey to an alpha channel,
133
if the 
134
CLASS="LITERAL"
135
>SDL_SRCCOLORKEY
136
> flag is set on the surface.
137
The generated surface will then be transparent (alpha=0) where the
138
pixels match the colourkey, and opaque (alpha=255) elsewhere.
139
>
140
>
141
CLASS="REFSECT1"
142
>
143
NAME="AEN2030"
144
>
145
>
146
>Return Value
147
>
148
>If the conversion fails or runs out of memory, it returns
149
150
CLASS="RETURNVALUE"
151
>NULL
152
>
153
>
154
>
155
CLASS="REFSECT1"
156
>
157
NAME="AEN2034"
158
>
159
>
160
>See Also
161
>
162
>
163
HREF="sdlconvertsurface.html"
164
>SDL_ConvertSurface
165
>,
166
167
HREF="sdlsetalpha.html"
168
>SDL_SetAlpha
169
>,
170
171
HREF="sdlsetcolorkey.html"
172
>SDL_SetColorKey
173
>,
174
175
HREF="sdldisplayformat.html"
176
>SDL_DisplayFormat
177
>,
178
179
HREF="sdlsurface.html"
180
>SDL_Surface
181
>
182
>
183
>
184
CLASS="NAVFOOTER"
185
>
186
ALIGN="LEFT"
187
WIDTH="100%">
188
WIDTH="100%"
189
BORDER="0"
190
CELLPADDING="0"
191
CELLSPACING="0"
192
>
193
>
194
WIDTH="33%"
195
ALIGN="left"
196
VALIGN="top"
197
>
198
HREF="sdldisplayformat.html"
199
>Prev
200
>
201
>
202
WIDTH="34%"
203
ALIGN="center"
204
VALIGN="top"
205
>
206
HREF="index.html"
207
>Home
208
>
209
>
210
WIDTH="33%"
211
ALIGN="right"
212
VALIGN="top"
213
>
214
HREF="sdlwarpmouse.html"
215
>Next
216
>
217
>
218
>
219
>
220
WIDTH="33%"
221
ALIGN="left"
222
VALIGN="top"
223
>SDL_DisplayFormat
224
>
225
WIDTH="34%"
226
ALIGN="center"
227
VALIGN="top"
228
>
229
HREF="video.html"
230
>Up
231
>
232
>
233
WIDTH="33%"
234
ALIGN="right"
235
VALIGN="top"
236
>SDL_WarpMouse
237
>
238
>
239
>
240
>
241
>
242
>