Wiki Page Content

Revision 1 as of 2011-03-13 20:18:22

Clear message

DRAFT

SDL_ConvertSurfaceFormat

Use this function to create a new surface of the specified format, and then copy and map the given surface to it so the blit of the converted surface will be as fast as possible.

Syntax

SDL_Surface* SDL_ConvertSurfaceFormat(SDL_Surface* src,
                                      Uint32       pixel_format,
                                      Uint32       flags)

Function Parameters

src

the SDL_Surface structure representing the surface to convert

pixel_format

one of the SDL_PixelFormatEnum values

flags

the flags are unused and should be set to 0 ???

Return Value

Returns the new surface, or NULL on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

You can add useful comments here

green


CategoryAPI, CategorySurface

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