diff options
Diffstat (limited to 'ctr/image.h')
-rw-r--r-- | ctr/image.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ctr/image.h b/ctr/image.h new file mode 100644 index 0000000..45eb695 --- /dev/null +++ b/ctr/image.h @@ -0,0 +1,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 |