sdlDestroySurface function

void sdlDestroySurface(
  1. Pointer<SdlSurface> surface
)

Free a surface.

It is safe to pass NULL to this function.

\param surface the SDL_Surface to free.

\since This function is available since SDL 3.1.3.

\sa SDL_CreateSurface \sa SDL_CreateSurfaceFrom

extern SDL_DECLSPEC void SDLCALL SDL_DestroySurface(SDL_Surface *surface)

Implementation

void sdlDestroySurface(Pointer<SdlSurface> surface) {
  final sdlDestroySurfaceLookupFunction = libSdl3.lookupFunction<
      Void Function(Pointer<SdlSurface> surface),
      void Function(Pointer<SdlSurface> surface)>('SDL_DestroySurface');
  return sdlDestroySurfaceLookupFunction(surface);
}