blob: ff6a4bdde54431e4340016bbcea11fdc5e83be36 (
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
27
28
29
30
31
32
33
34
35
36
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
|