SDL_ConvertSurface(3) SDL API Reference SDL_ConvertSurface(3)NAMESDL_ConvertSurface - Converts a surface to the same format as another
SDL_Surface *SDL_ConvertSurface(SDL_Surface *src, SDL_PixelFormat *fmt,
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
This function is used internally by SDL_DisplayFormat.
This function can only be called after SDL_Init.
Returns either a pointer to the new surface, or NULL on error.
SDL_CreateRGBSurface, SDL_DisplayFormat, SDL_PixelFormat, SDL_Surface
SDL Tue 11 Sep 2001, 23:01 SDL_ConvertSurface(3)