libdonut 2.3.6
Application framework for cross-platform game development in C++20
Loading...
Searching...
No Matches
Public Attributes | List of all members
donut::graphics::Font::Glyph Struct Reference

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.
 
vec2 sizeInAtlas
 Size of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false.
 
bool rendered
 True if the glyph has been rendered and has a valid rectangle in the texture atlas, false otherwise.
 

Detailed Description

Information about a single glyph's entry in the texture atlas.

Member Data Documentation

◆ positionInAtlas

vec2 donut::graphics::Font::Glyph::positionInAtlas

Position of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false.

◆ sizeInAtlas

vec2 donut::graphics::Font::Glyph::sizeInAtlas

Size of this glyph's rectangle in the texture atlas, in texels. Invalid if Glyph::rendered is false.

◆ rendered

bool donut::graphics::Font::Glyph::rendered

True if the glyph has been rendered and has a valid rectangle in the texture atlas, false otherwise.


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