GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Text2D::ShapedLineInfo Struct Reference

Information about a line of shaped glyphs, including some data that is not strictly required for simple rendering. More...

#include <GREM/graphics_2d/Text2D.hpp>

Public Attributes

vec2 shapedOffset
 Scaled offset of the baseline at the start of this line of text.
vec2 shapedSize
 Scaled total size of this line.
float shapedAscender
 Scaled total ascender of this line.
float shapedDescender
 Scaled total descender of this line.
size_t shapedGlyphOffset
 Index of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that is part of this line.
size_t stringOffset
 Byte offset in the input string of the first code unit that the first glyph that is part of this line originated from.

Detailed Description

Information about a line of shaped glyphs, including some data that is not strictly required for simple rendering.

See also
ShapedGlyph
ShapedGlyphInfo

Member Data Documentation

◆ shapedOffset

vec2 grem::graphics::Text2D::ShapedLineInfo::shapedOffset

Scaled offset of the baseline at the start of this line of text.

◆ shapedSize

vec2 grem::graphics::Text2D::ShapedLineInfo::shapedSize

Scaled total size of this line.

◆ shapedAscender

float grem::graphics::Text2D::ShapedLineInfo::shapedAscender

Scaled total ascender of this line.

◆ shapedDescender

float grem::graphics::Text2D::ShapedLineInfo::shapedDescender

Scaled total descender of this line.

◆ shapedGlyphOffset

size_t grem::graphics::Text2D::ShapedLineInfo::shapedGlyphOffset

Index of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that is part of this line.

◆ stringOffset

size_t grem::graphics::Text2D::ShapedLineInfo::stringOffset

Byte offset in the input string of the first code unit that the first glyph that is part of this line originated from.


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