TextMesh.ixx File
Properties for positioning and styling text during rendering. More...
Included Headers
#include <memory>
#include <span>
#include <string>
#include <limits>
#include <algorithm>
#include <utility>
#include <vector>
#include <helios.rendering.shader.UniformValueMap>
#include <helios.math>
#include <helios.rendering.shader.UniformSemantics>
#include <helios.util.Colors>
#include <helios.engine.core.data.FontId>
#include <helios.rendering.shader.Shader>
#include <helios.rendering.text.FontResourceProvider>
#include <helios.rendering.text.TypeSetter>
#include <helios.rendering.text.Glyph>
Namespaces Index
| namespace | helios |
| namespace | rendering |
|
Graphics rendering infrastructure. More... | |
| namespace | text |
|
Text rendering abstractions and data types. More... | |
Classes Index
| class | TextMesh |
|
Manages text content and caches layout data for efficient rendering. More... | |
Description
Properties for positioning and styling text during rendering.
File Listing
The file content with the documentation metadata removed is:
31export namespace helios::rendering::text {
67 helios::engine::core::data::FontId fontId_;
82 mutable TextLayout textLayout_;
87 mutable TypeSetter typeSetter_;
99 void updateCache(FontResourceProvider& fontResourceProvider) const {
105 textLayout_ = typeSetter_.layout(text_, fontScale_, fontId_, fontResourceProvider);
120 std::string text,
121 const float fontScale,
122 const helios::engine::core::data::FontId fontId
125 text_(std::move(text)),
126 fontScale_(fontScale),
127 fontId_(fontId) {}
139 [[nodiscard]] const helios::math::aabbf& localAABB(FontResourceProvider& fontResourceProvider) const noexcept {
154 [[nodiscard]] std::span<helios::math::vec4f> vertices(FontResourceProvider& fontResourceProvider) const noexcept {
168 text_ = std::move(text);
189 void setFontScale(const float scale) noexcept {
208 bool needsUpdate() const noexcept {
217 [[nodiscard]] helios::engine::core::data::FontId fontId() const noexcept {
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.