-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathBatchRenderer.h
48 lines (39 loc) · 885 Bytes
/
BatchRenderer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef BATCHRENDERER_H
#define BATCHRENDERER_H
#include <QObject>
#include <QRunnable>
#include <QImage>
#include <QList>
#include <QStringList>
#include <QColor>
#include <QFont>
class BatchRenderer : public QObject, public QRunnable
{
Q_OBJECT
QList<QList<QImage> > mSheetFrames;
QStringList mAnimNames;
QImage mCurSheet;
bool bStop;
public:
explicit BatchRenderer(QObject *parent = 0);
//Variables for drawing
QString folder;
QFont sheetFont;
int maxSheetWidth;
int offsetX;
int offsetY;
bool animNameEnabled;
bool sheetBgTransparent;
QColor sheetBgCol;
QColor animHighlightCol;
bool frameBgTransparent;
QColor frameBgCol;
QColor fontColor;
void run();
public slots:
void stop();
signals:
void renderingDone();
void renderingStart(QString sheetName);
};
#endif // BATCHRENDERER_H