26 void draw(uint32_t time)
override;
34 int REVOLUTION_TIME = 2000;
35 int X = 0, Y = 270, WIDTH = 480, HEIGHT = 40, FRAMES = REVOLUTION_TIME / 80;
36 const double PI = std::acos(-1);
37 static constexpr
float DIVISION = 30.f;
38 const int RANGE = HEIGHT / 2;
39 const int BASE_Y = Y + HEIGHT / 2;
40 int ADDITIONAL_PIXELS = 4 * DIVISION;
42 std::vector<std::vector<SDL_Point>> points;
43 SDL_Renderer *renderer;
int getY() const
Definition: WavefunctionAnimation.cpp:31
int getWidth() const
Definition: WavefunctionAnimation.cpp:36
The main application class header.
void draw(uint32_t time) override
The draw method. It will be called once per frame for each object in a scene.
Definition: WavefunctionAnimation.cpp:15
void setRevolutionTime(int time)
Definition: WavefunctionAnimation.cpp:9
An abstract class implementing both the GraphicsObject and the TouchEnabledObject, which gives an interactive graphic object as result.
Definition: InteractiveGraphicsObject.h:20
WavefunctionAnimation()
Definition: WavefunctionAnimation.cpp:3
int getHeight() const
Definition: WavefunctionAnimation.cpp:41
void rebuild()
Definition: WavefunctionAnimation.cpp:46
Definition: WavefunctionAnimation.h:21
int getX() const
Definition: WavefunctionAnimation.cpp:26