Struct QuadTriangleStrip

Struct Documentation

struct QuadTriangleStrip

A four-corner strip for one independently drawn atlas cell.

Public Functions

inline constexpr QuadTriangleStrip(const Triangle &first, const Vertex2D &fourth)

Copy the initial triangle and fourth corner into a two-face strip.

Inputs are retained by value, not borrowed; geometry is not uploaded.

See also

Detailed guide

inline constexpr const std::array<Vertex2D, CE::Rendering::Geometry::vertices_per_strip_quad> &vertices() const

Declaration: [[nodiscard]]

Borrow the four owned strip vertices for this value’s lifetime.

The array is not a six-vertex independent-triangle quad; use the matching topology.

See also

Detailed guide

Public Members

TriangleStrip<2> triangles

Two-face strip retaining its four vertices.