CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GlyphLayout Struct Reference

A structure that describes positioning and sizing of a single glyph in a text layout. More...

#include <CeresEngine/Text/TextLayout.hpp>

Public Attributes

Glyph glyph
 The glyph to be rendered.
 
Point2 pen
 The position of the glyph.
 
Rect2 bounds
 The size of the rendered glyph.
 
UInt32 textureIdx = 0
 The index to the font texture map.
 
Rect2 uv
 The UV coordinates for the glyph.
 
Color color
 The glyph color.
 

Detailed Description

A structure that describes positioning and sizing of a single glyph in a text layout.

Member Data Documentation

◆ bounds

Rect2 CeresEngine::GlyphLayout::bounds

The size of the rendered glyph.

◆ color

Color CeresEngine::GlyphLayout::color

The glyph color.

◆ glyph

Glyph CeresEngine::GlyphLayout::glyph

The glyph to be rendered.

◆ pen

Point2 CeresEngine::GlyphLayout::pen

The position of the glyph.

◆ textureIdx

UInt32 CeresEngine::GlyphLayout::textureIdx = 0

The index to the font texture map.

◆ uv

Rect2 CeresEngine::GlyphLayout::uv

The UV coordinates for the glyph.


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