Creates a new surface identical to the existing surface, scaled to the desired size.
Defined in <SDL3/SDL_surface.h>
int width, int height, SDL_ScaleMode scaleMode); SDL_Surface * SDL_ScaleSurface(SDL_Surface *surface,
SDL_Surface * | surface | the surface to duplicate and scale. |
int | width | the width of the new surface. |
int | height | the height of the new surface. |
SDL_ScaleMode | scaleMode | the SDL_ScaleMode to be used. |
(SDL_Surface *) Returns a copy of the surface or NULL on failure; call SDL_GetError() for more information.
The returned surface should be freed with SDL_DestroySurface().
This function is available since SDL 3.1.3.