mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
Added basic animations for windows
This commit is contained in:
17
src/managers/AnimationManager.hpp
Normal file
17
src/managers/AnimationManager.hpp
Normal file
@@ -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;
|
Reference in New Issue
Block a user