summaryrefslogtreecommitdiff
path: root/ZAPD/ZTexture.h
diff options
context:
space:
mode:
Diffstat (limited to 'ZAPD/ZTexture.h')
-rw-r--r--ZAPD/ZTexture.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/ZAPD/ZTexture.h b/ZAPD/ZTexture.h
index 29c3fbc..8cece3f 100644
--- a/ZAPD/ZTexture.h
+++ b/ZAPD/ZTexture.h
@@ -28,6 +28,7 @@ protected:
std::vector<uint8_t> textureDataRaw; // When reading from a PNG file.
uint32_t tlutOffset = static_cast<uint32_t>(-1);
ZTexture* tlut = nullptr;
+ bool splitTlut;
void PrepareBitmapRGBA16();
void PrepareBitmapRGBA32();
@@ -40,15 +41,15 @@ protected:
void PrepareBitmapPalette8();
void PrepareRawDataFromFile(const fs::path& inFolder);
- void PrepareRawDataRGBA16(const fs::path& rgbaPath);
- void PrepareRawDataRGBA32(const fs::path& rgbaPath);
- void PrepareRawDataGrayscale4(const fs::path& grayPath);
- void PrepareRawDataGrayscale8(const fs::path& grayPath);
- void PrepareRawDataGrayscaleAlpha4(const fs::path& grayAlphaPath);
- void PrepareRawDataGrayscaleAlpha8(const fs::path& grayAlphaPath);
- void PrepareRawDataGrayscaleAlpha16(const fs::path& grayAlphaPath);
- void PrepareRawDataPalette4(const fs::path& palPath);
- void PrepareRawDataPalette8(const fs::path& palPath);
+ void PrepareRawDataRGBA16();
+ void PrepareRawDataRGBA32();
+ void PrepareRawDataGrayscale4();
+ void PrepareRawDataGrayscale8();
+ void PrepareRawDataGrayscaleAlpha4();
+ void PrepareRawDataGrayscaleAlpha8();
+ void PrepareRawDataGrayscaleAlpha16();
+ void PrepareRawDataPalette4();
+ void PrepareRawDataPalette8();
public:
ZTexture(ZFile* nParent);
@@ -88,4 +89,5 @@ public:
bool IsColorIndexed() const;
void SetTlut(ZTexture* nTlut);
bool HasTlut() const;
+ void ParseRawDataLate() override;
};