20 lines
286 B
C++
20 lines
286 B
C++
#ifndef ANIMATION_H
|
|
#define ANIMATION_H
|
|
#include <QString>
|
|
#include <QImage>
|
|
|
|
class Animation
|
|
{
|
|
public:
|
|
explicit Animation(const QString & path);
|
|
~Animation();
|
|
|
|
QImage & at(int index) const {return *(images[index]);};
|
|
|
|
private:
|
|
QVector<QImage * > images;
|
|
|
|
};
|
|
|
|
#endif // ANIMATION_H
|