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 uint32_t durationForFrame(size_t n
) const;
26 void step(uint32_t ticks
);
30 std::vector
<uint32_t> durations_
;
34 uint32_t currentTicks_
;
41 #endif // MUSK_ANIMATION_H_