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
Referenced By
SDL_ConvertSurface(3), SDL_ConvertSurfaceAndColorspace(3), SDL_CreateSurface(3), SDL_CreateSurfaceFrom(3), SDL_DuplicateSurface(3), SDL_LoadBMP(3), SDL_LoadBMP_IO(3), SDL_ScaleSurface(3), SDL_Surface.3type(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS