SDL_ScaleSurface

Creates a new surface identical to the existing surface, scaled to the desired size.

The returned surface should be freed with SDL_DestroySurface().

extern (C) nothrow @nogc extern
SDL_ScaleSurface

Parameters

surface SDL_Surface*

the surface to duplicate and scale.

width int

the width of the new surface.

height int

the height of the new surface.

scaleMode SDL_ScaleMode

the SDL_ScaleMode to be used.

Return Value

a copy of the surface or NULL on failure; call SDL_GetError() for more information.

See Also

Meta