Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
24 lines (24 loc) · 1 KB

SDL_ConvertSurface.3

File metadata and controls

24 lines (24 loc) · 1 KB
 
Sep 14, 2001
Sep 14, 2001
1
.TH "SDL_ConvertSurface" "3" "Tue 11 Sep 2001, 23:01" "SDL" "SDL API Reference"
Apr 26, 2001
Apr 26, 2001
2
.SH "NAME"
Dec 29, 2007
Dec 29, 2007
3
SDL_ConvertSurface \- Converts a surface to the same format as another surface\&.
Apr 26, 2001
Apr 26, 2001
4
5
.SH "SYNOPSIS"
.PP
Sep 14, 2001
Sep 14, 2001
6
\fB#include "SDL/SDL\&.h"
Apr 26, 2001
Apr 26, 2001
7
8
9
10
11
12
13
14
15
.sp
\fBSDL_Surface *\fBSDL_ConvertSurface\fP\fR(\fBSDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags\fR);
.SH "DESCRIPTION"
.PP
Creates a new surface of the specified format, and then copies and maps the given surface to it\&. If this function fails, it returns \fBNULL\fP\&.
.PP
The \fBflags\fR parameter is passed to \fI\fBSDL_CreateRGBSurface\fP\fR and has those semantics\&.
.PP
This function is used internally by \fI\fBSDL_DisplayFormat\fP\fR\&.
Sep 14, 2001
Sep 14, 2001
16
17
.PP
This function can only be called after SDL_Init\&.
Apr 26, 2001
Apr 26, 2001
18
19
20
21
22
23
.SH "RETURN VALUE"
.PP
Returns either a pointer to the new surface, or \fBNULL\fP on error\&.
.SH "SEE ALSO"
.PP
\fI\fBSDL_CreateRGBSurface\fP\fR, \fI\fBSDL_DisplayFormat\fP\fR, \fI\fBSDL_PixelFormat\fR\fR, \fI\fBSDL_Surface\fR\fR
Sep 14, 2001
Sep 14, 2001
24
...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 23:01