ttfCreateSurfaceTextEngine function

Pointer<TtfTextEngine> ttfCreateSurfaceTextEngine()

Create a text engine for drawing text on SDL surfaces.

\returns a TTF_TextEngine object or NULL on failure; call SDL_GetError() for more information.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL_ttf 3.0.0.

\sa TTF_DestroySurfaceTextEngine \sa TTF_DrawSurfaceText

extern SDL_DECLSPEC TTF_TextEngine * SDLCALL TTF_CreateSurfaceTextEngine(void)

Implementation

Pointer<TtfTextEngine> ttfCreateSurfaceTextEngine() {
  final ttfCreateSurfaceTextEngineLookupFunction = libSdl3Ttf.lookupFunction<
      Pointer<TtfTextEngine> Function(),
      Pointer<TtfTextEngine> Function()>('TTF_CreateSurfaceTextEngine');
  return ttfCreateSurfaceTextEngineLookupFunction();
}