ttfCreateRendererTextEngineWithProperties function ttf

Pointer<TtfTextEngine> ttfCreateRendererTextEngineWithProperties(
  1. int props
)

Create a text engine for drawing text on an SDL renderer, with the specified properties.

These are the supported properties:

  • TTF_PROP_RENDERER_TEXT_ENGINE_RENDERER_POINTER: the renderer to use for creating textures and drawing text
  • TTF_PROP_RENDERER_TEXT_ENGINE_ATLAS_TEXTURE_SIZE_NUMBER: the size of the texture atlas

\param props the properties to use. \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_CreateRendererTextEngine \sa TTF_DestroyRendererTextEngine \sa TTF_DrawRendererText

extern SDL_DECLSPEC TTF_TextEngine * SDLCALL TTF_CreateRendererTextEngineWithProperties(SDL_PropertiesID props)

Implementation

Pointer<TtfTextEngine> ttfCreateRendererTextEngineWithProperties(int props) {
  final ttfCreateRendererTextEngineWithPropertiesLookupFunction = _libTtf
      .lookupFunction<
        Pointer<TtfTextEngine> Function(Uint32 props),
        Pointer<TtfTextEngine> Function(int props)
      >('TTF_CreateRendererTextEngineWithProperties');
  return ttfCreateRendererTextEngineWithPropertiesLookupFunction(props);
}