Skip to content

Class AIAC::TextRenderer

ClassList > AIAC > TextRenderer

Public Static Attributes

Type Name
std::map< char, Character > Characters

Public Functions

Type Name
TextRenderer () = default
~TextRenderer () = default

Public Static Functions

Type Name
void Init ()
Initialize the static TextRenderer instance.
void RenderTextIn3DSpace (std::string text, glm::vec3 position, glm::vec4 color, float scale=1.0f)
Render text in the 3D space, but always facing the screen.
void SetProjection (glm::mat4 projection)
set the projection matrix for rendering text in 3D space

Public Static Attributes Documentation

variable Characters

std::map< char, Character > AIAC::TextRenderer::Characters;

Public Functions Documentation

function TextRenderer

AIAC::TextRenderer::TextRenderer () = default

function ~TextRenderer

AIAC::TextRenderer::~TextRenderer () = default

Public Static Functions Documentation

function Init

Initialize the static TextRenderer instance.

static void AIAC::TextRenderer::Init () 


function RenderTextIn3DSpace

Render text in the 3D space, but always facing the screen.

static void AIAC::TextRenderer::RenderTextIn3DSpace (
    std::string text,
    glm::vec3 position,
    glm::vec4 color,
    float scale=1.0f
) 

Parameters:

  • text Text to show
  • position The anchor of the text
  • color Text color
  • projection The final MVP projection of the scene to show
  • scale Text scale, default = 1.0f

function SetProjection

set the projection matrix for rendering text in 3D space

static inline void AIAC::TextRenderer::SetProjection (
    glm::mat4 projection
) 



The documentation for this class was generated from the following file src/AIAC/Render/TextRenderer.h