ttfCreateRendererTextEngine function
Create a text engine for drawing text on an SDL renderer.
\param renderer the renderer to use for creating textures and drawing text. \returns a TTF_TextEngine object or NULL on failure; call SDL_GetError() for more information.
\threadsafety This function should be called on the thread that created the renderer.
\since This function is available since SDL_ttf 3.0.0.
\sa TTF_DestroyRendererTextEngine
extern SDL_DECLSPEC TTF_TextEngine * SDLCALL TTF_CreateRendererTextEngine(SDL_Renderer *renderer)
Implementation
Pointer<TtfTextEngine> ttfCreateRendererTextEngine(
Pointer<SdlRenderer> renderer) {
final ttfCreateRendererTextEngineLookupFunction = libSdl3Ttf.lookupFunction<
Pointer<TtfTextEngine> Function(Pointer<SdlRenderer> renderer),
Pointer<TtfTextEngine> Function(
Pointer<SdlRenderer> renderer)>('TTF_CreateRendererTextEngine');
return ttfCreateRendererTextEngineLookupFunction(renderer);
}