Penguin
Blame: SDL_DisplayFormatAlpha(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_DisplayFormatAlpha(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!DisplayFormatAlpha
2 !!!SDL_!DisplayFormatAlpha
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!DisplayFormatAlpha- Convert a surface to the display format
1 perry 13 !!SYNOPSIS
14
15
16 __#include __
17
18
2 perry 19 __SDL_Surface *SDL_!DisplayFormatAlpha__(__SDL_Surface
1 perry 20 *surface__);
21 !!DESCRIPTION
22
23
24 This function takes a surface and copies it to a new surface
25 of the pixel format and colors of the video framebuffer plus
26 an alpha channel, suitable for fast blitting onto the
27 display surface. It calls
2 perry 28 ''SDL_!ConvertSurface''
1 perry 29
30
31 If you want to take advantage of hardware colorkey or alpha
32 blit acceleration, you should set the colorkey and alpha
33 value before calling this function.
34 !!RETURN VALUE
35
36
37 If the conversion fails or runs out of memory, it returns
38 __NULL__
39 !!SEE ALSO
40
41
2 perry 42 ''SDL_!ConvertSurface'', ''SDL_!SetAlpha'',
43 ''SDL_!SetColorKey'', ''SDL_!DisplayFormat'',
1 perry 44 ''SDL_Surface''
45 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.