aboutsummaryrefslogtreecommitdiff
path: root/src/ui/animations/animation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/animations/animation.cpp')
-rw-r--r--src/ui/animations/animation.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/animations/animation.cpp b/src/ui/animations/animation.cpp
index 33c743cf..b1f92a3e 100644
--- a/src/ui/animations/animation.cpp
+++ b/src/ui/animations/animation.cpp
@@ -2,6 +2,8 @@
#include <utility>
+#include "application.hpp"
+
namespace cru::ui::animations
{
namespace details
@@ -66,6 +68,14 @@ namespace cru::ui::animations
AnimationTimeUnit current_time_ = AnimationTimeUnit::zero();
};
+ AnimationManager* AnimationManager::GetInstance()
+ {
+ return Application::GetInstance()->ResolveSingleton<AnimationManager>([](auto)
+ {
+ return new AnimationManager{};
+ });
+ }
+
AnimationManager::AnimationManager()
{