SDL_CreateSurface

Allocate a new surface with a specific pixel format.

The pixels of the new surface are initialized to zero.

extern (C) nothrow @nogc extern
SDL_CreateSurface

Parameters

width int

the width of the surface.

height int

the height of the surface.

format SDL_PixelFormat

the SDL_PixelFormat for the new surface's pixel format.

Return Value

The new SDL_Surface structure that is created or null on failure; call SDL_GetError for more information.

See Also

Meta