libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Information about a single glyph's entry in the texture atlas. More...
#include <donut/graphics/Font.hpp>
Public Attributes | |
vec2 | positionInAtlas |
Position of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false. More... | |
vec2 | sizeInAtlas |
Size of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false. More... | |
bool | rendered |
True if the glyph has been rendered and has a valid rectangle in the texture atlas, false otherwise. More... | |
Information about a single glyph's entry in the texture atlas.
vec2 donut::graphics::Font::Glyph::positionInAtlas |
Position of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false.
vec2 donut::graphics::Font::Glyph::sizeInAtlas |
Size of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false.
bool donut::graphics::Font::Glyph::rendered |
True if the glyph has been rendered and has a valid rectangle in the texture atlas, false otherwise.