Dualie
Loading...
Searching...
No Matches
RectangleShape.hpp
1//
2// Created by caleb on 6/17/24.
3//
4
5#ifndef DUALIE_RECTANGLESHAPE_HPP
6#define DUALIE_RECTANGLESHAPE_HPP
7
8
9#include <Dualie/Graphics/Shape.hpp>
10
11namespace dl {
12
16 class RectangleShape : public dl::Shape {
17
18
19 public:
21
22 RectangleShape(const dl::Vector2f &size);
23
28 void setSize(const dl::Vector2f &size);
29
30 void draw(const dl::Vector2f& viewOffset) override;
31
32 };
33
34}
35
36#endif //DUALIE_RECTANGLESHAPE_HPP
A rectangle shape.
Definition RectangleShape.hpp:16
void setSize(const dl::Vector2f &size)
Sets the size of the rectangle.
Definition RectangleShape.cpp:15
void draw(const dl::Vector2f &viewOffset) override
Draws the drawable to the screen.
Definition RectangleShape.cpp:19
The base class for any shape.
Definition Shape.hpp:19