Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::RetainedTextBatch Struct Reference

#include <RetainedText.hpp>

Public Attributes

std::vector< f32 > vertices
 TEXT_VERTEX_FLOATS floats a vertex, four a quad.
std::vector< u16 > indices
 Six a quad, naming this batch's own vertices.
std::vector< f32 > blocks
 left, bottom, right, top of each RETAINED_TEXT_BLOCK_QUADS quads.
u32 pageId = 0
 The atlas page, which is the draw's texture.
TextGlyphMode mode = TextGlyphMode::Color
 How the page's pixels become coverage. A label may mix them: an outline's ring, then its fill.

Detailed Description

Definition at line 29 of file RetainedText.hpp.

Member Data Documentation

◆ blocks

std::vector<f32> esengine::RetainedTextBatch::blocks

left, bottom, right, top of each RETAINED_TEXT_BLOCK_QUADS quads.

Definition at line 32 of file RetainedText.hpp.

Referenced by esengine::RetainedTextStore::add(), and esengine::retainedTextClip().

◆ indices

std::vector<u16> esengine::RetainedTextBatch::indices

Six a quad, naming this batch's own vertices.

Definition at line 31 of file RetainedText.hpp.

Referenced by esengine::RetainedTextStore::add(), esengine::retainedTextClip(), and esengine::RenderFrame::submitRetainedText().

◆ mode

TextGlyphMode esengine::RetainedTextBatch::mode = TextGlyphMode::Color

How the page's pixels become coverage. A label may mix them: an outline's ring, then its fill.

Definition at line 34 of file RetainedText.hpp.

Referenced by esengine::RetainedTextStore::add(), and esengine::RenderFrame::submitRetainedText().

◆ pageId

u32 esengine::RetainedTextBatch::pageId = 0

The atlas page, which is the draw's texture.

Definition at line 33 of file RetainedText.hpp.

Referenced by esengine::RetainedTextStore::add(), and esengine::RenderFrame::submitRetainedText().

◆ vertices

std::vector<f32> esengine::RetainedTextBatch::vertices

TEXT_VERTEX_FLOATS floats a vertex, four a quad.

Definition at line 30 of file RetainedText.hpp.

Referenced by esengine::RetainedTextStore::add(), esengine::retainedTextClip(), and esengine::RenderFrame::submitRetainedText().


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