mirror of https://github.com/zeldaret/mm.git
12 lines
364 B
C++
12 lines
364 B
C++
#include "TextureExporter.h"
|
|
#include "../ZAPD/ZFile.h"
|
|
|
|
void ExporterExample_Texture::Save(ZResource* res, [[maybe_unused]]fs::path outPath, BinaryWriter* writer)
|
|
{
|
|
ZTexture* tex = (ZTexture*)res;
|
|
|
|
auto data = tex->parent->GetRawData();
|
|
|
|
for (uint i = tex->GetRawDataIndex(); i < tex->GetRawDataIndex() + tex->GetRawDataSize(); i++)
|
|
writer->Write(data[i]);
|
|
} |