Solaris  - SDL_ConvertSurface (3)

NAME

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

CONTENTS

SYNOPSIS

#include "SDL/SDL.h"

SDL_Surface *SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt, Uint32 flags);

advertisement

advertisement


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.

This function can only be called after SDL_Init.

RETURN VALUE

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

SEE ALSO

SDL_CreateRGBSurface, SDL_DisplayFormat, SDL_PixelFormat, SDL_Surface

Jump to page    or go to Top of page |  Section 3 |  OpenSolaris Man Main Index.


SDL SDL_ConvertSurface (3) Tue 11 Sep 2001, 23:01
Generated by OpenSolaris Forum from /usr/share/man/man3/SDL_ConvertSurface.3 using man macros.