diff options
| author | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2021-01-08 17:38:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-08 17:38:31 -0500 |
| commit | fd4d53a2684871a1ac28668515d025470a45ef7f (patch) | |
| tree | 47ebf84c86c4f1b943b95029debf1d13759f456e /ZAPD/ZTexture.h | |
| parent | 1bacd7fdc964ad9eec9d8b56373eb10e10723d2f (diff) | |
Fixed bug with declarations at 0x0000, and fixed improperly sized palettes. (#65)
* Fixed bug with extraction of ci4 textures
* Made a bunch of declarations static
* Removed manual writes to declarations dictionary from external classes.
* Added a bunch of deconstructors, freed a bunch of stuff
* Fixed bug with declarations at 0x0000, and fixed issue with palette sizing.
* Fixed VS Lib and Include Dirs
Diffstat (limited to 'ZAPD/ZTexture.h')
| -rw-r--r-- | ZAPD/ZTexture.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ZAPD/ZTexture.h b/ZAPD/ZTexture.h index 9a3ddfe..1e84d47 100644 --- a/ZAPD/ZTexture.h +++ b/ZAPD/ZTexture.h @@ -60,6 +60,8 @@ public: ZTexture(); ~ZTexture(); + bool isPalette; + static ZTexture* BuildFromXML(tinyxml2::XMLElement* reader, std::string inFolder, bool readFile); static ZTexture* ExtractFromXML(tinyxml2::XMLElement* reader, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nRelPath); static ZTexture* FromBinary(TextureType nType, std::vector<uint8_t> nRawData, int rawDataIndex, std::string nName, int nWidth, int nHeight); @@ -76,6 +78,9 @@ public: std::string GetIMSizFromType(); int GetWidth(); int GetHeight(); + void SetWidth(int nWidth); + void SetHeight(int nHeight); + TextureType GetTextureType(); void Save(const std::string& outFolder); std::string GetExternalExtension(); }; |
