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