SDL_DestroyTexture - Man Page
Destroy the specified texture.
Header File
Defined in SDL3/SDL_render.h
Synopsis
#include "SDL3/SDL.h" void SDL_DestroyTexture(SDL_Texture *texture);
Description
Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture".
Function 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
·(3), SDL_CreateTexture(3), ·(3), SDL_CreateTextureFromSurface(3)
Referenced By
SDL_CreateTexture(3), SDL_CreateTextureFromSurface(3), SDL_CreateTextureWithProperties(3), SDL_Texture.3type(3).
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS