Function fermium::surface::SDL_CreateRGBSurfaceWithFormatFrom[][src]

pub unsafe extern "C" fn SDL_CreateRGBSurfaceWithFormatFrom(
    pixels: *mut c_void,
    width: c_int,
    height: c_int,
    depth: c_int,
    pitch: c_int,
    format: u32
) -> *mut SDL_Surface

Makes a surface from a pre-allocated buffer in a specified format.

This is like a combination of SDL_CreateRGBSurfaceWithFormat and SDL_CreateRGBSurfaceFrom.