10 #include <glm/glm.hpp>
28 using ShapeComponent::ShapeComponent;
Defines the ShapeComponent class, a base component for handling shapes.
A base component for handling shapes within a game or application.
Definition: ShapeComponent.hpp:24
A specialized shape component for rendering rectangles within a game or application.
Definition: ShapeRectangleComponent.hpp:23
void setColor(glm::vec3 color)
Set the color of the rectangle.
Definition: ShapeRectangleComponent.cpp:17
float _width
Definition: ShapeRectangleComponent.hpp:62
float _height
Definition: ShapeRectangleComponent.hpp:63
void setWidth(float w)
Set the width of the rectangle.
Definition: ShapeRectangleComponent.cpp:15
glm::vec3 _color
Definition: ShapeRectangleComponent.hpp:61
virtual void drawShape() override
Draw the rectangle shape.
Definition: ShapeRectangleComponent.cpp:7
void setHeight(float h)
Set the height of the rectangle.
Definition: ShapeRectangleComponent.cpp:16