MOS
character.hpp
1 #pragma once
2 
3 #include <glm/glm.hpp>
4 
5 namespace mos::gfx {
6 
8 struct Character final {
10  const unsigned int id;
11  const glm::vec2 position;
12  const glm::vec2 offset;
13  const float advance;
14  const float width;
15  const float height;
16 };
17 } // namespace mos::gfx
Definition: assets.hpp:17
const unsigned int id
Unicode character point id.
Definition: character.hpp:10
Measurements of a character glyph, for text rendering.
Definition: character.hpp:8