sdlDestroySurface function surface
Free a surface.
It is safe to pass NULL to this function.
\param surface the SDL_Surface to free.
\threadsafety No other thread should be using the surface when it is freed.
\since This function is available since SDL 3.2.0.
\sa SDL_CreateSurface \sa SDL_CreateSurfaceFrom
extern SDL_DECLSPEC void SDLCALL SDL_DestroySurface(SDL_Surface *surface)
Implementation
void sdlDestroySurface(Pointer<SdlSurface> surface) {
final sdlDestroySurfaceLookupFunction = _libSdl
.lookupFunction<
Void Function(Pointer<SdlSurface> surface),
void Function(Pointer<SdlSurface> surface)
>('SDL_DestroySurface');
return sdlDestroySurfaceLookupFunction(surface);
}