From 34685a836a40648167848060b48b62788cdcc85f Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 2 Mar 2023 17:30:47 +0000 Subject: Move AnimationManager::tick() to an event loop --- src/managers/AnimationManager.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/managers/AnimationManager.hpp') diff --git a/src/managers/AnimationManager.hpp b/src/managers/AnimationManager.hpp index 77e8acf1..635d51eb 100644 --- a/src/managers/AnimationManager.hpp +++ b/src/managers/AnimationManager.hpp @@ -26,6 +26,8 @@ class CAnimationManager { std::list m_lAnimatedVariables; + wl_event_source* m_pAnimationTick; + private: bool deltaSmallToFlip(const Vector2D& a, const Vector2D& b); bool deltaSmallToFlip(const CColor& a, const CColor& b); -- cgit v1.2.3