Penguin

SDL_!ConvertSurface?

SDL_!ConvertSurface?

NAME SYNOPSIS DESCRIPTION RETURN VALUE SEE ALSO


NAME

SDL_!ConvertSurface?- Converts a surface to the same format as another surface.

SYNOPSIS

#include

SDL_Surface *SDL_!ConvertSurface?(SDL_Surface *src, SDL_!PixelFormat? *fmt, Uint32 flags);

DESCRIPTION

Creates a new surface of the specified format, and then copies and maps the given surface to it. If this function fails, it returns NULL.

The flags parameter is passed to SDL_CreateRGBSurface and has those semantics.

This function is used internally by SDL_!DisplayFormat?.

RETURN VALUE

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

SEE ALSO

SDL_CreateRGBSurface, SDL_!DisplayFormat?, SDL_!PixelFormat?, SDL_Surface


This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.