|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a 3D instance of Text2D shaped from a Font2D to draw. More...
#include <GREM/graphics_3d/Instances3D.hpp>
Public Attributes | |
| vec3 | position {0.0f, 0.0f, 0.0f} |
| Starting position, in world coordinates, to draw the text at. | |
| quat | orientation {0.0f, 0.0f, 0.0f, 1.0f} |
| Rotation of the text around its TextInstance3D::origin. | |
| vec2 | scale {1.0f, 1.0f} |
| Coefficients to scale the size of the text by. | |
| TextAlign | alignment = TextAlign::NONE |
| Alignment mode of the text. | |
| vec2 | alignmentOffset {0.0f, 0.0f} |
| Additional offset to apply to the text after applying the specified alignment. | |
| Color | color = Color::WHITE |
| Base text color. | |
| float | distanceOrderingBias = 0.0f |
| Bias to subtract from the text's distance from the camera, which is used for distance ordering when drawing transparent meshes. | |
| vec3 grem::graphics::TextInstance3D::position {0.0f, 0.0f, 0.0f} |
Starting position, in world coordinates, to draw the text at.
This will be the first position on the baseline of the first line of text.
| quat grem::graphics::TextInstance3D::orientation {0.0f, 0.0f, 0.0f, 1.0f} |
Rotation of the text around its TextInstance3D::origin.
| vec2 grem::graphics::TextInstance3D::scale {1.0f, 1.0f} |
Coefficients to scale the size of the text by.
The result is affected by Font2DOptions::useLinearFiltering.
| TextAlign grem::graphics::TextInstance3D::alignment = TextAlign::NONE |
Alignment mode of the text.
| vec2 grem::graphics::TextInstance3D::alignmentOffset {0.0f, 0.0f} |
Additional offset to apply to the text after applying the specified alignment.
| Color grem::graphics::TextInstance3D::color = Color::WHITE |
Base text color.
| float grem::graphics::TextInstance3D::distanceOrderingBias = 0.0f |
Bias to subtract from the text's distance from the camera, which is used for distance ordering when drawing transparent meshes.