dEngine
Simple 2D C++ game engine
FilledCircle.h
Go to the documentation of this file.
1 #ifndef DENGINE_FILLEDCIRCLE_H
2 #define DENGINE_FILLEDCIRCLE_H
3 #include "../UIComponent.h"
4 #include <SDL.h>
5 #include <cmath>
6 #include "../../System/Game.h"
7 #include "../../Vec2.h"
8 
9 using namespace dengine;
10 
11 namespace dengine_UI {
15  class FilledCircle : public UIComponent{
16  public:
22  void Setup(Vec2 center, int radius);
23 
24  void Render() override;
25  void Update() override;
26 
27 
28  private:
30  int r;
31  };
32 }
33 
34 #endif //DENGINE_FILLEDCIRCLE_H
A filled circle.
Definition: FilledCircle.h:15
A vector composed of two points.
Definition: Vec2.h:11
A component of a UI window.
Definition: UIComponent.h:14
Definition: Circle.h:11
int r
Definition: FilledCircle.h:30
The namespace containing the engine&#39;s code.
Definition: Collider.h:9
Vec2 centerPoint
Definition: FilledCircle.h:29