|
Chronos 0.0
A advanced 2D rendering and animation system
|
Parameters for creating a shape(any) More...
#include <commonStructs.hpp>
Public Attributes | |
| float | x = 0 |
| float | y = 0 |
| float | rotation = 0 |
| float | xSize = 1 |
| float | ySize = 1 |
| bool | show = true |
| std::array< float, 3 > | color = { 1.0f, 0.0f, 0.0f } |
| char | shapeName [200] = "Shape" |
Parameters for creating a shape(any)
This is the struct for the parameters of a Shape. This is needed to create and modify a Shape.
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 shape(Range : 0 and 1). |
| y | y coordinate of the shape(Range : 0 and 1). |
| rotation | Rotation of the shape in degrees(Range: any float). |
| xSize | x scale of the shape(Range : 0 and 1). |
| ySize | y scale of the shape(Range : 0 and 1). |
| show | Show or hide the shape. |
| color | Color of the shape(Range : 0 and 1). |
| shapeName | Name of the shape(must be unique). |
Definition at line 51 of file commonStructs.hpp.
| std::array<float, 3> Chronos::Manager::ShapeParams::color = { 1.0f, 0.0f, 0.0f } |
Definition at line 58 of file commonStructs.hpp.
| float Chronos::Manager::ShapeParams::rotation = 0 |
Definition at line 54 of file commonStructs.hpp.
| char Chronos::Manager::ShapeParams::shapeName[200] = "Shape" |
Definition at line 59 of file commonStructs.hpp.
| bool Chronos::Manager::ShapeParams::show = true |
Definition at line 57 of file commonStructs.hpp.
| float Chronos::Manager::ShapeParams::x = 0 |
Definition at line 52 of file commonStructs.hpp.
| float Chronos::Manager::ShapeParams::xSize = 1 |
Definition at line 55 of file commonStructs.hpp.
| float Chronos::Manager::ShapeParams::y = 0 |
Definition at line 53 of file commonStructs.hpp.
| float Chronos::Manager::ShapeParams::ySize = 1 |
Definition at line 56 of file commonStructs.hpp.