Function SDL_DestroyTexture

pub unsafe extern "C" fn SDL_DestroyTexture(texture: *mut SDL_Texture)
Available on crate feature dep_sdl2 only.
Expand description

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