summaryrefslogtreecommitdiff
path: root/ZAPD/ZTexture.h
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2022-06-02 13:20:36 -0400
committerGitHub <noreply@github.com>2022-06-02 13:20:36 -0400
commitf54f2fa96bfc476a15fcc3ebcd6124bc19164fcd (patch)
tree1f3eff4a540daef6a8679ba2b78c4580185d73dd /ZAPD/ZTexture.h
parent87cb648b4311d20673452111edaf4d38a5290c28 (diff)
Extract palette data from external file (#249)
* WIP * Done * Fix * Fixes * More fixes * Fixes for backgrounds. * Roman's fixes and format. * Update docs and use tinyxml function for validation. * Update docs/zapd_extraction_xml_reference.md Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com> * move tlut texture data to stack variable Co-authored-by: EllipticEllipsis <elliptic.ellipsis@gmail.com>
Diffstat (limited to 'ZAPD/ZTexture.h')
-rw-r--r--ZAPD/ZTexture.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ZAPD/ZTexture.h b/ZAPD/ZTexture.h
index 6f2c499..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();
@@ -88,4 +89,5 @@ public:
bool IsColorIndexed() const;
void SetTlut(ZTexture* nTlut);
bool HasTlut() const;
+ void ParseRawDataLate() override;
};