SDL_LoadBMP

Load a BMP image from a file.

The new surface should be freed with SDL_DestroySurface(). Not doing so will result in a memory leak.

extern (C) nothrow @nogc extern
SDL_LoadBMP
(
const(char)* file
)

Parameters

file const(char)*

the BMP file to load.

Return Value

a pointer to a new SDL_Surface structure or NULL on failure; call SDL_GetError() for more information.

See Also

Meta