Skip to main content

SDL_CreateRGBSurfaceWithFormatFrom

Function SDL_CreateRGBSurfaceWithFormatFrom 

Source
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
Expand description

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

This is like a combination of SDL_CreateRGBSurfaceWithFormat and SDL_CreateRGBSurfaceFrom.