1SDL_ConvertSurface(3)          SDL API Reference         SDL_ConvertSurface(3)
2
3
4

NAME

6       SDL_ConvertSurface  -  Converts a surface to the same format as another
7       surface.
8

SYNOPSIS

10       #include "SDL/SDL.h"
11
12       SDL_Surface *SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt,
13       Uint32 flags);
14

DESCRIPTION

16       Creates a new surface of the specified format, and then copies and maps
17       the given surface to it. If this function fails, it returns NULL.
18
19       The flags parameter is passed to  SDL_CreateRGBSurface  and  has  those
20       semantics.
21
22       This function is used internally by SDL_DisplayFormat.
23
24       This function can only be called after SDL_Init.
25

RETURN VALUE

27       Returns either a pointer to the new surface, or NULL on error.
28

SEE ALSO

30       SDL_CreateRGBSurface, SDL_DisplayFormat, SDL_PixelFormat, SDL_Surface
31
32
33
34SDL                         Tue 11 Sep 2001, 23:01       SDL_ConvertSurface(3)
Impressum