SDL_DestroyTexture(3)
π β¨ SDL_DestroyTexture(3) β¨π
okay so this page lives in the SDL3 FUNCTIONS manual, and it's literally about destroying a texture. the function name ate and left no crumbs. π
π NAME π
SDL_DestroyTexture β destroy the specified texture. periodt, that's the whole job. π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_render.h>
void SDL_DestroyTexture(SDL_Texture *texture);
π¦ DESCRIPTION π¦
Passing NULL or an otherwise invalid texture will set the SDL error message to "Invalid texture". so if you pass it something invalid, SDL is highkey gonna say exactly that. no cap. π
π FUNCTION PARAMETERS π
textureβ the texture to destroy. hand over the texture, bestie, and let it go. π«Ά
π THREAD SAFETY π
β οΈ main thread only, fr fr. This function should only be called on the main thread. do not bring worker-thread chaos into this, iykyk. π
β AVAILABILITY β
This function is available since SDL 3.2.0. if you're on older SDL, it's giving "not yet, bestie" π
π SEE ALSO π
mwah π this page is from Simple Directmedia Layer, version SDL 3.4.18, and the page itself is SDL_DestroyTexture(3). the footer didn't show a date, so I'm not making one up β just source, version, and love. πβ¨
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms