SDL_DestroySurface - Man Page

Free a surface.

Synopsis

#include <SDL3/SDL_surface.h>

void SDL_DestroySurface(SDL_Surface *surface);

Description

It is safe to pass NULL to this function.

Function Parameters

surface

the SDL_Surface to free.

Thread Safety

No other thread should be using the surface when it is freed.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_CreateSurface(3), SDL_CreateSurfaceFrom(3)

Info

SDL 3.4.18 Simple Directmedia Layer SDL3 FUNCTIONS