TTF_CreateRendererTextEngineWithProperties

Function TTF_CreateRendererTextEngineWithProperties 

Source
pub unsafe extern "C" fn TTF_CreateRendererTextEngineWithProperties(
    props: u32,
) -> *mut TTF_TextEngine
Expand description

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

These are the supported properties:

§Parameters

  • props: the properties to use.

§Return value

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

§Thread safety

This function should be called on the thread that created the renderer.

§Availability

This function is available since SDL_ttf 3.0.0.

§See also