Struct Engine::ShapeComponent¶
ClassList > Engine > ShapeComponent
#include <ShapeComponent.hpp>
Public Attributes¶
| Type | Name |
|---|---|
| Color | color = WHITE |
| Vector2 | endOffset = {50.0f, 50.0f} |
| bool | filled = true |
| float | height = 50.0f |
| float | radius = 25.0f |
| int | sides = 3 |
| float | thickness = 1.0f |
| ShapeType | type = ShapeType::RECTANGLE |
| float | width = 50.0f |
Public Functions¶
| Type | Name |
|---|---|
| std::vector< raylib::Vector2 > | GetShapeVectors (const Rotation & rot, const Position & pos) const |
Public Attributes Documentation¶
variable color¶
variable endOffset¶
variable filled¶
variable height¶
variable radius¶
variable sides¶
variable thickness¶
variable type¶
variable width¶
Public Functions Documentation¶
function GetShapeVectors¶
std::vector< raylib::Vector2 > Engine::ShapeComponent::GetShapeVectors (
const Rotation & rot,
const Position & pos
) const
The documentation for this class was generated from the following file /home/runner/work/r-type/r-type/Engine/include/Components/ShapeComponent.hpp