Wiki Page Content

Revision 8 as of 2011-01-05 18:44:09

Clear message

SDL_ConvertSurface

Use this function to copy an existing surface into a new surface that is optimized for a specified pixel format.

Syntax

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

Function Parameters

src

the existing SDL_Surface structure to convert

fmt

the new SDL_PixelFormat structure

flags

unused; set to 0

Return Value

Returns *a pointer to* the new SDL_Surface structure that is created or NULL if this function it fails; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategorySurface

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit