SDL_LoadBMP_IO

Load a BMP image from a seekable SDL data stream.

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_IO

Parameters

src SDL_IOStream*

the data stream for the surface.

closeio bool

if true, calls SDL_CloseIO() on src before returning, even in the case of an error.

Return Value

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

See Also

Meta