logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_DestroySurface - Free a surface.

Availability

       This function is available since SDL 3.2.0.

Description

       It is safe to pass NULL to this function.

Function Parameters

surface
              the SDL_Surface to free.

Name

       SDL_DestroySurface - Free a surface.

See Also

SDL_CreateSurface(3), SDL_CreateSurfaceFrom(3)

Simple Directmedia Layer                           SDL 3.2.20                              SDL_DestroySurface(3)

Synopsis

#include<SDL3/SDL_surface.h>voidSDL_DestroySurface(SDL_Surface*surface);

Thread Safety

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

See Also