Scroll to navigation

TTF_CreateRendererTextEngine(3) SDL_ttf3 FUNCTIONS TTF_CreateRendererTextEngine(3)

NAME

TTF_CreateRendererTextEngine - Create a text engine for drawing text on an SDL renderer.

HEADER FILE

Defined in SDL3_ttf/SDL_ttf.h

SYNOPSIS

#include "SDL3_ttf/SDL_ttf.h"
TTF_TextEngine * TTF_CreateRendererTextEngine(SDL_Renderer *renderer);

FUNCTION PARAMETERS

the renderer to use for creating textures and drawing text.

RETURN VALUE

( TTF_TextEngine
*) 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

(3), TTF_DestroyRendererTextEngine(3)

SDL_ttf 3.1.0 SDL_ttf