| SDL_DestroyTexture(3) | SDL3 FUNCTIONS | SDL_DestroyTexture(3) |
SDL_DestroyTexture - Destroy the specified texture.
Defined in SDL3/SDL_render.h
#include "SDL3/SDL.h"
void SDL_DestroyTexture(SDL_Texture *texture);
Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture".
This function should only be called on the main thread.
This function is available since SDL 3.2.0.
•(3), SDL_CreateTexture(3), •(3), SDL_CreateTextureFromSurface(3)
| SDL 3.2.10 | Simple Directmedia Layer |