ttfSetTextEngine function
Set the text engine used by a text object.
\param text the TTF_Text to modify. \param engine the text engine to use for drawing. \returns true on success or false on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the text.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_GetTextEngine
extern SDL_DECLSPEC bool SDLCALL TTF_SetTextEngine(TTF_Text *text, TTF_TextEngine *engine)
Implementation
bool ttfSetTextEngine(Pointer<TtfText> text, Pointer<TtfTextEngine> engine) {
final ttfSetTextEngineLookupFunction = libSdl3Ttf.lookupFunction<
Uint8 Function(Pointer<TtfText> text, Pointer<TtfTextEngine> engine),
int Function(Pointer<TtfText> text,
Pointer<TtfTextEngine> engine)>('TTF_SetTextEngine');
return ttfSetTextEngineLookupFunction(text, engine) == 1;
}