summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-23 22:01:59 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-23 22:01:59 +0100
commitbcf7ee6dc225c00b2aea9891ea42aeb18e5b0cc8 (patch)
tree62989a7b7c5ba1c1a289cd38babe71acb76521d1 /src/managers/AnimationManager.hpp
parent1923b0d1709f3d255912df5cfa9e0b1c6607842e (diff)
Added basic animations for windows
Diffstat (limited to 'src/managers/AnimationManager.hpp')
-rw-r--r--src/managers/AnimationManager.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/managers/AnimationManager.hpp b/src/managers/AnimationManager.hpp
new file mode 100644
index 00000000..38e433c6
--- /dev/null
+++ b/src/managers/AnimationManager.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "../defines.hpp"
+#include <list>
+
+class CAnimationManager {
+public:
+
+ void tick();
+
+private:
+ bool deltaSmallToFlip(const Vector2D& a, const Vector2D& b);
+ bool deltazero(const Vector2D& a, const Vector2D& b);
+ double parabolic(double, double, double);
+};
+
+inline std::unique_ptr<CAnimationManager> g_pAnimationManager; \ No newline at end of file