logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TTF_TextEngine - A text engine used to create text objects.

Availability

       This struct is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                            TTF_TextEngine(3type)

Description

       This  is a public interface that can be used by applications and libraries to perform customize rendering
       with text objects. See <SDL3_ttf/SDL_textengine.h> for details.

       There are three text engines provided with the library:

       • Drawing to an SDL_Surface, created with

       TTF_CreateSurfaceTextEngine ()

       • Drawing with an SDL 2D renderer, created with

       TTF_CreateRendererTextEngine ()

       • Drawing with the SDL GPU API, created with

       TTF_CreateGPUTextEngine ()

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_TextEngine - A text engine used to create text objects.

Synopsis

#include"SDL3_ttf/SDL_ttf.h"typedefstructTTF_TextEngineTTF_TextEngine;

See Also