libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Configuration of a copied 2D instance of Text shaped from a Font, for drawing as part of a RenderPass. More...
#include <donut/graphics/RenderPass.hpp>
Public Attributes | |
Shader2D * | shader = Shader2D::ALPHA |
Non-owning pointer to the shader to use when rendering the glyphs of this text. More... | |
const Text * | text |
Non-owning read-only pointer to the shaped text to copy, and later draw. More... | |
vec2 | position {0.0f, 0.0f} |
Starting position, in world coordinates, to render the text at. More... | |
Color | color = Color::WHITE |
Base text color. More... | |
Configuration of a copied 2D instance of Text shaped from a Font, for drawing as part of a RenderPass.
Required fields:
Shader2D* donut::graphics::TextCopyInstance::shader = Shader2D::ALPHA |
Non-owning pointer to the shader to use when rendering the glyphs of this text.
const Text* donut::graphics::TextCopyInstance::text |
Non-owning read-only pointer to the shaped text to copy, and later draw.
vec2 donut::graphics::TextCopyInstance::position {0.0f, 0.0f} |
Starting position, in world coordinates, to render the text at.
This will be the first position on the baseline of the first line of text.
Color donut::graphics::TextCopyInstance::color = Color::WHITE |
Base text color.