Function SDL_DestroyTexture

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

Destroy the specified texture.

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

§Parameters

  • texture: the texture to destroy.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also