Penguin
Blame: SDL_DisplayFormat(3)
EditPageHistoryDiffInfoLikePages
Annotated edit history of SDL_DisplayFormat(3) version 2, including all changes. View license author blame.
Rev Author # Line
2 perry 1 SDL_!DisplayFormat
2 !!!SDL_!DisplayFormat
1 perry 3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 SEE ALSO
8 ----
9 !!NAME
10
11
2 perry 12 SDL_!DisplayFormat- Convert a surface to the display format
1 perry 13 !!SYNOPSIS
14
15
16 __#include __
17
18
2 perry 19 __SDL_Surface *SDL_!DisplayFormat__(__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,
26 suitable for fast blitting onto the display surface. It
2 perry 27 calls ''SDL_!ConvertSurface''
1 perry 28
29
30 If you want to take advantage of hardware colorkey or alpha
31 blit acceleration, you should set the colorkey and alpha
32 value before calling this function.
33
34
35 If you want an alpha channel, see
2 perry 36 ''SDL_!DisplayFormatAlpha''.
1 perry 37 !!RETURN VALUE
38
39
40 If the conversion fails or runs out of memory, it returns
41 __NULL__
42 !!SEE ALSO
43
44
2 perry 45 __SDL_!ConvertSurface__, __SDL_!DisplayFormatAlpha
46 SDL_!SetAlpha__, __SDL_!SetColorKey__,
1 perry 47 __SDL_Surface__
48 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.