lmgl 1.0.0
A lightweight OpenGL graphics engine library written in C++
Loading...
Searching...
No Matches
lmgl::ui::Glyph Struct Reference

Glyph metadata for a single character. More...

#include <font.hpp>

Public Attributes

glm::vec2 tex_coord_min
 UV coordinates in texture atlas (min).
glm::vec2 tex_coord_max
 UV coordinates in texture atlas (max).
glm::vec2 size
 Size of glyph in pixels.
glm::vec2 bearing
 Offset from baseline to top-left of glyph.
float advance
 Horizontal offset to advance to next glyph.

Detailed Description

Glyph metadata for a single character.

Contains all information needed to render a character from the texture atlas.


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