TTF_DestroyText(3)
π TTF_DestroyText(3) π
okay so bestie, welcome to the SDL_ttf3 FUNCTIONS corner of the manual, where today's main character is TTF_DestroyText. it's giving cleanup era β¨
β¨ NAME β¨
TTF_DestroyText β destroy a text object created by a text engine. π«Ά
basically: you made a text object, you loved it, you rendered it, and now we say goodbye. closure is self-care fr fr π
πΈ HEADER FILE πΈ
defined in SDL3_ttf/SDL_ttf.h β that's the one, no cap π
π¦ SYNOPSIS π¦
#include "SDL3_ttf/SDL_ttf.h"
void TTF_DestroyText(TTF_Text *text);
look at her. one function, one pointer, zero drama. iconic π
π FUNCTION PARAMETERS π
textβ the text to destroy. like, the actual text object you want gone. poof. πͺ
π THREAD SAFETY π
β οΈ this function should be called on the thread that created the text. not a different thread, not your friend's thread, not the thread you met at a party once. the same one. periodt π
π AVAILABILITY π
this function is available since SDL_ttf 3.0.0. she's been here. she's a veteran. β
π SEE ALSO π
β’(3)TTF_CreateText(3)
like, obviously go read TTF_CreateText(3) β you can't destroy what you never created, iykyk π§
and that's the whole page, bestie!! no notes, ate, left zero crumbs. this little writeup is chillin' in SDL_ttf 3.2.2, so if you see that version number floatin' around, that's just her signature π bye ily, go free your memory ππ¦β¨
π¦ where this page comes from
- debian trixie: libsdl3-ttf-doc 3.2.2+ds-1 Β· Zlib
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 43: SDL3_ttf-devel 3.2.2-2.fc43 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- fedora 44: SDL3_ttf-devel 3.2.2-4.fc44 Β· Zlib AND MIT
- ubuntu questing: libsdl3-ttf-doc 3.2.2+ds-1
- ubuntu resolute: libsdl3-ttf-doc 3.2.2+ds-1build1 Β· Zlib
- ubuntu stonking: libsdl3-ttf-doc 3.2.2+ds-2 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms