SDL_ConvertSurface
Use this function to copy an existing surface into a new surface that is optimized for a specified pixel format.
Contents
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
