dEngine
Simple 2D C++ game engine
Circle.h
Go to the documentation of this file.
1 #ifndef DENGINE_CIRCLE_H
2 #define DENGINE_CIRCLE_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 Circle : public UIComponent{
16  public:
22  void Setup(Vec2 center, int radius);
23 
24  void Render() override;
25  void Update() override;
26 
27  private:
29  int r;
30  };
31 }
32 
33 #endif //DENGINE_CIRCLE_H
A hollow circle.
Definition: Circle.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: Circle.h:29
Vec2 centerPoint
Definition: Circle.h:28
The namespace containing the engine&#39;s code.
Definition: Collider.h:9