Skip to main content

TextLayout Struct

Result of text layout computation. More...

Declaration

struct helios::rendering::text::TextLayout { ... }

Public Member Attributes Index

math::aabbfaabb

Axis-aligned bounding box enclosing all glyphs. More...

std::vector< helios::math::vec4f >vertices

Vertex data for all glyphs (position and texture coordinates). More...

Description

Result of text layout computation.

Contains the axis-aligned bounding box and vertex data for a laid-out text string.

Definition at line 38 of file TypeSetter.ixx.

Public Member Attributes

aabb

math::aabbf helios::rendering::text::TextLayout::aabb

Axis-aligned bounding box enclosing all glyphs.

Definition at line 43 of file TypeSetter.ixx.

vertices

std::vector<helios::math::vec4f> helios::rendering::text::TextLayout::vertices

Vertex data for all glyphs (position and texture coordinates).

Each glyph consists of 6 vertices (2 triangles). Each vertex is a `vec4f` containing `(x, y, texU, texV)`.

Definition at line 51 of file TypeSetter.ixx.

51 std::vector<helios::math::vec4f> vertices;

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.