CGVIS Utils
Loading...
Searching...
No Matches
CharTex Struct Reference

Texture + transform bundle for a single glyph used by FontEngine. More...

#include <FontRenderer.h>

Collaboration diagram for CharTex:
[legend]

Public Attributes

GLTexture2D tex
 Glyph texture (RGBA or single-channel).
Mat4 scale
 Per-glyph scale to normalize to [0,1] quad space.
Mat4 trans
 Per-glyph translation used by the renderer.
float width
 Glyph width normalized by the maximum glyph width in the set.
float height
 Glyph height normalized by the maximum glyph height in the set.

Detailed Description

Texture + transform bundle for a single glyph used by FontEngine.

Member Data Documentation

◆ height

float CharTex::height

Glyph height normalized by the maximum glyph height in the set.

◆ scale

Mat4 CharTex::scale

Per-glyph scale to normalize to [0,1] quad space.

◆ tex

GLTexture2D CharTex::tex

Glyph texture (RGBA or single-channel).

◆ trans

Mat4 CharTex::trans

Per-glyph translation used by the renderer.

◆ width

float CharTex::width

Glyph width normalized by the maximum glyph width in the set.


The documentation for this struct was generated from the following file: