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

Result of the text shaping functions. More...

#include <GREM/graphics_2d/Text2D.hpp>

Public Attributes

size_t shapedGlyphOffset
 Index, into the lists returned by getShapedGlyphs() and getShapedGlyphsInfo(), of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that was shaped.
size_t shapedLineOffset
 Index, into the list returned by getShapedLinesInfo(), of the ShapedLineInfo corresponding to the first line that was shaped.

Detailed Description

Result of the text shaping functions.

Member Data Documentation

◆ shapedGlyphOffset

size_t grem::graphics::Text2D::ShapeResult::shapedGlyphOffset

Index, into the lists returned by getShapedGlyphs() and getShapedGlyphsInfo(), of the ShapedGlyph and ShapedGlyphInfo corresponding to the first glyph that was shaped.

If no glyphs were shaped, this is the index that the first glyph would have had if it was shaped, i.e. the previous size of the lists.

◆ shapedLineOffset

size_t grem::graphics::Text2D::ShapeResult::shapedLineOffset

Index, into the list returned by getShapedLinesInfo(), of the ShapedLineInfo corresponding to the first line that was shaped.


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