TTF_DestroyGPUTextEngine(3)

πŸ’… TTF_DestroyGPUTextEngine(3) ✨

okay bestie, welcome to the SDL_ttf3 FUNCTIONS corner of the manual, where we say goodbye to things on purpose 🫢


🌸 NAME 🌸

TTF_DestroyGPUTextEngine β€” destroy a text engine that you made for drawing text with the SDL GPU API πŸ’€βœ¨


πŸŽ€ HEADER FILE πŸŽ€

It lives in SDL3_ttf/SDL_ttf.h, no cap πŸ“„


⭐ SYNOPSIS ⭐

#include "SDL3_ttf/SDL_ttf.h"

void TTF_DestroyGPUTextEngine(TTF_TextEngine *engine);

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: all text created by this engine should be destroyed before calling this function. Like, clean up your text first, then come for the engine. That's the order, periodt πŸ‘‘

not me showing up to destroy the engine while the text is still out here living its best life 😭 don't do that

πŸ’– FUNCTION PARAMETERS πŸ’–

  • engine β€” a TTF_TextEngine object that you created with TTF_CreateGPUTextEngine () 🌈

πŸ”₯ THREAD SAFETY πŸ”₯

This function should be called on the thread that created the engine. Same thread, same vibe, don't be switching up on it fr fr 🧡✨


πŸ‘‘ AVAILABILITY πŸ‘‘

This function has been available since SDL_ttf 3.0.0, iconic behavior honestly πŸ’…


🌈 SEE ALSO 🌈


k byeeee, go forth and free your GPU text engine responsibly πŸ«ΆπŸŽ€

β€” mwah, this page was brought to you by SDL_ttf, version SDL_ttf 3.2.2 πŸŒΈβœ¨πŸ’œ

πŸ“¦ where this page comes from