2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-26 15:17:35 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
2020-06-26 15:17:35 +00:00
|
|
|
// Animation.h
|
|
|
|
//
|
|
|
|
// Animation base class.
|
|
|
|
//
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_CORE_ANIMATIONS_ANIMATION_H
|
|
|
|
#define ES_CORE_ANIMATIONS_ANIMATION_H
|
2013-12-08 17:35:43 +00:00
|
|
|
|
|
|
|
class Animation
|
|
|
|
{
|
|
|
|
public:
|
2021-07-07 18:31:46 +00:00
|
|
|
virtual ~Animation() {}
|
2020-06-26 15:17:35 +00:00
|
|
|
virtual int getDuration() const = 0;
|
|
|
|
virtual void apply(float t) = 0;
|
2013-12-08 17:35:43 +00:00
|
|
|
};
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#endif // ES_CORE_ANIMATIONS_ANIMATION_H
|