TTF_DESTROYSURFACETEXTENGINE(3)
π NAME π
TTF_DestroySurfaceTextEngine β bestie, this is the one that destroys a text engine that was made for drawing text onto SDL surfaces. Rips it right out. Gone. Periodt.
This page lives in the SDL_ttf3 manual, section 3 (that's the library-functions section, iykyk).
β¨ HEADER FILE β¨
It's defined in SDL3_ttf/SDL_ttf.h, so that's where you go looking if you wanna see the receipts.
π SYNOPSIS π
#include "SDL3_ttf/SDL_ttf.h"
void TTF_DestroySurfaceTextEngine(TTF_TextEngine *engine);
Likeβ¦ that's it. One function, one pointer, zero return value. It's giving minimalism. π
π¦ DESCRIPTION π¦
Okay so here's the tea, and it's important tea: all text created by this engine should be destroyed before calling this function.
Not me telling you this is a "should" and not a *"must"*β¦ but bestie, read the room. Clean up your text first, then nuke the engine. That's the order. That's the vibe. π
πΈ FUNCTION PARAMETERS πΈ
engineβ aTTF_TextEngineobject, and specifically one that you created withTTF_CreateSurfaceTextEngine(). Don't be bringing some random engine in here, the girls will know. β¨
π§ THREAD SAFETY π§
This function should be called on the thread that created the engine. Same thread, no cap. Don't be hopping threads like it's a group chat β the engine's gotta go out the same door it came in. π«Ά
β AVAILABILITY β
This function is available since SDL_ttf 3.0.0. She's been here a minute, she's iconic, she's not new. π
π SEE ALSO π
β’(3)TTF_CreateSurfaceTextEngine(3)β the glow-up that made this engine in the first place, so like, obviously go read that one too π
That's the whole page, babe β go forth and free your memory responsibly. πβ¨
Source & version: SDL_ttf 3.2.2 (dated with the SDL_ttf manual's own timestamp, mwah π). Byeee! π¦π
π¦ 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