Function fermium::surface::SDL_ConvertSurface
source · pub unsafe extern "C" fn SDL_ConvertSurface(
src: *mut SDL_Surface,
fmt: *const SDL_PixelFormat,
flags: u32
) -> *mut SDL_Surface
Expand description
Creates a new surface of the specified format, and then copies and maps the given surface to it so the blit of the converted surface will be as fast as possible. If this function fails, it returns NULL.
The flags
parameter is passed to SDL_CreateRGBSurface
and has those
semantics. You can also pass SDL_RLEACCEL
in the flags parameter and
SDL will try to RLE accelerate colorkey and alpha blits in the resulting
surface.