|
Chronos 0.0
A advanced 2D rendering and animation system
|
Parameters for rendering text. More...
#include <engineStructs.hpp>
Public Attributes | |
| std::string | text |
| float | x = 0 |
| float | y = 0 |
| float | rotation = 0 |
| float | scale = 1.0f |
| std::array< float, 3 > | color = { 1.0f, 1.0f, 1.0f } |
Parameters for rendering text.
This is the struct for the parameters of a Font. This is needed to create and modify a Font.
In Vulkan y axis is inverted. So the y axis of the shape is inverted. This means that -1 is the top of the screen and 1 is the bottom of the screen.
| x | x coordinate of the text(Range : 0 and 1). |
| y | y coordinate of the text(Range : 0 and 1). |
| rotation | Rotation of the text in degrees(Range: any float). |
| scale | Scale of the text(Range : any float). |
| text | The text to render. |
| color | The color of the text(Range : 0 and 1). |
Definition at line 49 of file engineStructs.hpp.
| std::array<float, 3> Chronos::Engine::TextParams::color = { 1.0f, 1.0f, 1.0f } |
Definition at line 55 of file engineStructs.hpp.
| float Chronos::Engine::TextParams::rotation = 0 |
Definition at line 53 of file engineStructs.hpp.
| float Chronos::Engine::TextParams::scale = 1.0f |
Definition at line 54 of file engineStructs.hpp.
| std::string Chronos::Engine::TextParams::text |
Definition at line 50 of file engineStructs.hpp.
| float Chronos::Engine::TextParams::x = 0 |
Definition at line 51 of file engineStructs.hpp.
| float Chronos::Engine::TextParams::y = 0 |
Definition at line 52 of file engineStructs.hpp.