Free an RGB surface.
Defined in <SDL3/SDL_surface.h>
void SDL_DestroySurface(SDL_Surface *surface);
surface | the SDL_Surface to free. |
It is safe to pass NULL to this function.
This function is available since SDL 3.0.0.
CategoryAPI, CategoryAPIFunction