mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-05 13:46:00 +01:00
20 lines
No EOL
626 B
C++
20 lines
No EOL
626 B
C++
#pragma once
|
|
|
|
#include "../defines.hpp"
|
|
#include <list>
|
|
|
|
class CAnimationManager {
|
|
public:
|
|
|
|
void tick();
|
|
|
|
private:
|
|
bool deltaSmallToFlip(const Vector2D& a, const Vector2D& b);
|
|
bool deltaSmallToFlip(const CColor& a, const CColor& b);
|
|
bool deltazero(const Vector2D& a, const Vector2D& b);
|
|
bool deltazero(const CColor& a, const CColor& b);
|
|
double parabolic(const double, const double, const double);
|
|
CColor parabolic(const double, const CColor&, const CColor&);
|
|
};
|
|
|
|
inline std::unique_ptr<CAnimationManager> g_pAnimationManager; |