|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Configuration of a 2D instance of a string of text to draw using a Font2D. More...
#include <GREM/graphics_2d/Instances2D.hpp>
Public Attributes | |
| uint32_t | characterSize = 16 |
| Character size to shape the glyphs at. | |
| vec2 | position {0.0f, 0.0f} |
| Starting position, in world coordinates, to draw the text at. | |
| vec2 | shapeScale {1.0f, 1.0f} |
| Scaling to apply to the size of the shaped glyphs. | |
| vec2 | shapeOrigin {0.0f, 0.0f} |
| Offset, in normalized coordinates, specifying the origin relative to the baseline of the first line of text. | |
| float | angle = 0.0f |
| Angle, in radians, to rotate the text counter-clockwise by, around its TextStringInstance2D::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. | |
Configuration of a 2D instance of a string of text to draw using a Font2D.
| uint32_t grem::graphics::TextStringInstance2D::characterSize = 16 |
Character size to shape the glyphs at.
| vec2 grem::graphics::TextStringInstance2D::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.
| vec2 grem::graphics::TextStringInstance2D::shapeScale {1.0f, 1.0f} |
Scaling to apply to the size of the shaped glyphs.
The result is affected by Font2DOptions::useLinearFiltering.
| vec2 grem::graphics::TextStringInstance2D::shapeOrigin {0.0f, 0.0f} |
Offset, in normalized coordinates, specifying the origin relative to the baseline of the first line of text.
For example, a value of (0.5, 0.5) corresponds to the middle of the first line of text.
| float grem::graphics::TextStringInstance2D::angle = 0.0f |
Angle, in radians, to rotate the text counter-clockwise by, around its TextStringInstance2D::origin.
| vec2 grem::graphics::TextStringInstance2D::scale {1.0f, 1.0f} |
Coefficients to scale the size of the text by.
The result is affected by Font2DOptions::useLinearFiltering.
| TextAlign grem::graphics::TextStringInstance2D::alignment = TextAlign::NONE |
Alignment mode of the text.
| vec2 grem::graphics::TextStringInstance2D::alignmentOffset {0.0f, 0.0f} |
Additional offset to apply to the text after applying the specified alignment.
| Color grem::graphics::TextStringInstance2D::color = Color::WHITE |
Base text color.