Chronos 0.0
A advanced 2D rendering and animation system
Loading...
Searching...
No Matches
Chronos::Manager::ShapeParams Struct Reference

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"
 

Detailed Description

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.

Note:

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.

Parameters
xx coordinate of the shape(Range : 0 and 1).
yy coordinate of the shape(Range : 0 and 1).
rotationRotation of the shape in degrees(Range: any float).
xSizex scale of the shape(Range : 0 and 1).
ySizey scale of the shape(Range : 0 and 1).
showShow or hide the shape.
colorColor of the shape(Range : 0 and 1).
shapeNameName of the shape(must be unique).

Definition at line 51 of file commonStructs.hpp.

Member Data Documentation

◆ color

std::array<float, 3> Chronos::Manager::ShapeParams::color = { 1.0f, 0.0f, 0.0f }

Definition at line 58 of file commonStructs.hpp.

58{ 1.0f, 0.0f, 0.0f };

◆ rotation

float Chronos::Manager::ShapeParams::rotation = 0

Definition at line 54 of file commonStructs.hpp.

◆ shapeName

char Chronos::Manager::ShapeParams::shapeName[200] = "Shape"

Definition at line 59 of file commonStructs.hpp.

◆ show

bool Chronos::Manager::ShapeParams::show = true

Definition at line 57 of file commonStructs.hpp.

◆ x

float Chronos::Manager::ShapeParams::x = 0

Definition at line 52 of file commonStructs.hpp.

◆ xSize

float Chronos::Manager::ShapeParams::xSize = 1

Definition at line 55 of file commonStructs.hpp.

◆ y

float Chronos::Manager::ShapeParams::y = 0

Definition at line 53 of file commonStructs.hpp.

◆ ySize

float Chronos::Manager::ShapeParams::ySize = 1

Definition at line 56 of file commonStructs.hpp.


The documentation for this struct was generated from the following file: