|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a 2D instance of Text2D shaped from a Font2D to draw. More...
#include <GREM/graphics_2d/Instances2D.hpp>
Public Attributes | |
| vec2 | position {0.0f, 0.0f} |
| Starting position, in world coordinates, to draw the text at. | |
| float | angle = 0.0f |
| Angle, in radians, to rotate the text counter-clockwise by, around its TextInstance2D::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. | |
| vec2 grem::graphics::TextInstance2D::position {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.
| float grem::graphics::TextInstance2D::angle = 0.0f |
Angle, in radians, to rotate the text counter-clockwise by, around its TextInstance2D::origin.
| vec2 grem::graphics::TextInstance2D::scale {1.0f, 1.0f} |
Coefficients to scale the size of the text by.
The result is affected by Font2DOptions::useLinearFiltering.
| TextAlign grem::graphics::TextInstance2D::alignment = TextAlign::NONE |
Alignment mode of the text.
| vec2 grem::graphics::TextInstance2D::alignmentOffset {0.0f, 0.0f} |
Additional offset to apply to the text after applying the specified alignment.
| Color grem::graphics::TextInstance2D::color = Color::WHITE |
Base text color.