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¶
Public Functions Documentation¶
function TextRenderer¶
function ~TextRenderer¶
Public Static Functions Documentation¶
function Init¶
Initialize the static TextRenderer instance.
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 showposition
The anchor of the textcolor
Text colorprojection
The final MVP projection of the scene to showscale
Text scale, default = 1.0f
function SetProjection¶
set the projection matrix for rendering text in 3D space
The documentation for this class was generated from the following file src/AIAC/Render/TextRenderer.h