Shkyera Engine
Easy to use, game engine for Python
ShapeCircleComponent.hpp
Go to the documentation of this file.
1 
7 #pragma once
8 
10 
11 namespace shkyera {
12 
22 class ShapeCircleComponent final : public ShapeComponent {
23  public:
29  using ShapeComponent::ShapeComponent;
30 
36  void setRadius(float r);
37 
45  virtual void drawShape() override;
46 
47  private:
48  float _radius; //< The radius of the circle.
49 };
50 
51 } // namespace shkyera
Defines the ShapeComponent class, a base component for handling shapes.
A specialized shape component for rendering circles within a game or application.
Definition: ShapeCircleComponent.hpp:22
float _radius
Definition: ShapeCircleComponent.hpp:48
virtual void drawShape() override
Draw the circle shape.
Definition: ShapeCircleComponent.cpp:7
void setRadius(float r)
Set the radius of the circle.
Definition: ShapeCircleComponent.cpp:15
A base component for handling shapes within a game or application.
Definition: ShapeComponent.hpp:24
Definition: Entity.cpp:3