summaryrefslogtreecommitdiff
path: root/ctr/image.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-06-03 05:55:54 +0200
committerTreeki <treeki@gmail.com>2014-06-03 05:55:54 +0200
commit7a9387269e3b123b1647cf59c78cc6c998a9a330 (patch)
tree7874647c497a6b6113f660ff27f6f79b7fc7d4aa /ctr/image.h
parentbe8b56a7f0a8f6ba5456a099b61d032fd8aa2f61 (diff)
downloadLayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.tar.gz
LayoutStudio-7a9387269e3b123b1647cf59c78cc6c998a9a330.zip
experimental 3DS support
Diffstat (limited to 'ctr/image.h')
-rw-r--r--ctr/image.h26
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