summaryrefslogtreecommitdiff
path: root/ctr/image.h
blob: 45eb69551d101b3db44896687825df6a9b019ad7 (plain)
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
#ifndef CTRIMAGE_H
#define CTRIMAGE_H

#include "../wii/common.h"
#include <QImage>

class CTRImage {
public:
	int format;
	QImage image;
};

class CTRImageCollection {
public:
	CTRImageCollection();
	CTRImageCollection(QDataStream &stream);

	void writeToDataStream(QDataStream &out) const;

	QVector<CTRImage> images;

private:
	void readTexture(QDataStream &in, QDataStream &header, CTRImage &tex);
};

#endif // CTRIMAGE_H