Skip to content

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

Color Engine::ShapeComponent::color;

variable endOffset

Vector2 Engine::ShapeComponent::endOffset;

variable filled

bool Engine::ShapeComponent::filled;

variable height

float Engine::ShapeComponent::height;

variable radius

float Engine::ShapeComponent::radius;

variable sides

int Engine::ShapeComponent::sides;

variable thickness

float Engine::ShapeComponent::thickness;

variable type

ShapeType Engine::ShapeComponent::type;

variable width

float Engine::ShapeComponent::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