1 #ifndef MUSK_ANIMATION_H_
2 #define MUSK_ANIMATION_H_
11 class Animation
: public Image
14 // TODO: doc: duration is the duration of each frame (in ms)
15 Animation(const std::string
& path
,
16 size_t frames
= 1, uint32_t durations
= 250);
18 virtual int width() const;
20 unsigned int durationForFrame(size_t n
) const;
23 void step(uint32_t ticks
);
27 std::vector
<uint32_t> durations_
;
30 uint32_t currentTicks_
;
37 #endif // MUSK_ANIMATION_H_