diff options
Diffstat (limited to '')
-rw-r--r-- | wii/texpalette.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/wii/texpalette.h b/wii/texpalette.h new file mode 100644 index 0000000..ff6a4bd --- /dev/null +++ b/wii/texpalette.h @@ -0,0 +1,37 @@ +#ifndef WIITEXPALETTE_H +#define WIITEXPALETTE_H + +#include "common.h" +#include "gx.h" +#include <QImage> + +class WiiTPLTexture { +public: + // TODO: palette stuff + + QImage image; + GX::TextureFormat format; + + GX::WrapType wrapS, wrapT; + + GX::TextureFilter minFilter, magFilter; + + float lodBias; + bool edgeLODEnable; + quint8 minLOD, maxLOD; +}; + +class WiiTexPalette { +public: + WiiTexPalette(); + WiiTexPalette(QDataStream &stream); + + void writeToDataStream(QDataStream &out) const; + + QVector<WiiTPLTexture> textures; + +private: + void readTexture(QDataStream &in, int textureOffs, int paletteOffs, WiiTPLTexture &tex); +}; + +#endif // WIITEXPALETTE_H |