Files
MapLibreParticleLab/include/llmr/util/animation.hpp
Konstantin Käfer 509b223fbf animate northing
2014-01-17 13:33:39 +01:00

31 lines
522 B
C++

#ifndef LLMR_UTIL_ANIMATION
#define LLMR_UTIL_ANIMATION
namespace llmr {
namespace util {
class animation {
public:
enum state {
running,
complete
};
animation(double from, double to, double &value, double duration);
animation(const animation &) = delete;
animation(const animation &&) = delete;
animation &operator=(const animation &) = delete;
state update() const;
private:
const double start, duration;
const double from, to;
double &value;
};
}
}
#endif