diff options
| author | EllipticEllipsis <73679967+EllipticEllipsis@users.noreply.github.com> | 2021-09-13 18:19:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-13 13:19:34 -0400 |
| commit | 3c00dcb30f33b763e215aebfa8ebdf96a8c3ee4d (patch) | |
| tree | c397a7442330e580a827854f1421e8ce97a8dbdb /ExporterTest/TextureExporter.cpp | |
| parent | 4d051c0fa036d245027a211bc7fd6a4afdce207f (diff) | |
Texture Animation extraction from objects (#180)
* Initial files
* Add resource header, first go at ExtractFromXML
* Now prints plenty to terminal, but not to file
* Main array now declared in file
* Erroring, but need to checkout master to test
* Not erroring any more, hooray
* TextureScrollingParams working, missing pointer
* Scrolling works
* Cycling params should work completely now
* Type 2 works, type 4 crashes
* Fixed iterator bound, works for Type 4 too now
* Correct a couple more EnvColor things
* Add null checks to declarations
* Switch to Seg2Offset, make TextureAnimationEntry an ordinary struct, delete some obsolete functions
* Remove Unknown (throws exception at construction instead)
* Move GetResourceType down
* Begin rewrite of SetAnimatedMaterialList
* Remove old structs in SetAnimatedMaterialList
* Fix infinite loop
* Tested and working for MM, objects and scenes
* Add warnings for undeclared textures (MM OK)
* Make `__PRETTY_FUNCTION__` work on GCC/Clang, at least
* Remove address from GetDefault name, add fancy errors
* Format (also added some extensive documentation last time)
* More formatting
* Fiddle with errors a bit more
* Fix pointer offsets and alignment
* Format, add comment to SetAnimatedMaterialList
* Add to docs
* Review
* Add [[maybe_unused]]
* uint to get rid of warnings
* makefile
* Fix most warnings
* Add default to shut GCC up
* Format
Diffstat (limited to 'ExporterTest/TextureExporter.cpp')
| -rw-r--r-- | ExporterTest/TextureExporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ExporterTest/TextureExporter.cpp b/ExporterTest/TextureExporter.cpp index 95d3eb9..3b536ba 100644 --- a/ExporterTest/TextureExporter.cpp +++ b/ExporterTest/TextureExporter.cpp @@ -7,6 +7,6 @@ void ExporterExample_Texture::Save(ZResource* res, fs::path outPath, BinaryWrite auto data = tex->parent->GetRawData(); - for (int i = tex->GetRawDataIndex(); i < tex->GetRawDataIndex() + tex->GetRawDataSize(); i++) + for (uint i = tex->GetRawDataIndex(); i < tex->GetRawDataIndex() + tex->GetRawDataSize(); i++) writer->Write(data[i]); }
\ No newline at end of file |
