SDL_DestroySurface(3)

SDL_DestroySurface3

Free a surface.

Usage

#include "SDL3/SDL.h"

void SDL_DestroySurface(SDL_Surface *surface);

Header file

Defined in SDL3/SDL_surface.h

Overview

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.