DOKK / manpages / debian 13 / libsdl3-ttf-doc / TTF_DestroyText.3.en
TTF_DestroyText(3) SDL_ttf3 FUNCTIONS TTF_DestroyText(3)

TTF_DestroyText - Destroy a text object created by a text engine.

Defined in SDL3_ttf/SDL_ttf.h

#include "SDL3_ttf/SDL_ttf.h"
void TTF_DestroyText(TTF_Text *text);

the text to destroy.

This function should be called on the thread that created the text.

This function is available since SDL_ttf 3.0.0.

(3), TTF_CreateText(3)

SDL_ttf 3.2.2 SDL_ttf