sdlDestroyTexture function

void sdlDestroyTexture(
  1. Pointer<SdlTexture> texture
)

Destroy the specified texture.

Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture".

\param texture the texture to destroy

\since This function is available since SDL 2.0.0.

\sa SDL_CreateTexture \sa SDL_CreateTextureFromSurface

extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture)

Implementation

void sdlDestroyTexture(Pointer<SdlTexture> texture) {
  final sdlDestroyTextureLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlTexture> texture),
      void Function(Pointer<SdlTexture> texture)>('SDL_DestroyTexture');
  return sdlDestroyTextureLookupFunction(texture);
}