mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +00:00
ObjWriting: Use configured image output format when trying to dump images
This commit is contained in:
parent
14593b4799
commit
87d760f6d7
@ -1,5 +1,6 @@
|
|||||||
#include "AssetDumperGfxImage.h"
|
#include "AssetDumperGfxImage.h"
|
||||||
#include "Image/IwiWriter27.h"
|
#include "Image/IwiWriter27.h"
|
||||||
|
#include "ObjWriting.h"
|
||||||
|
|
||||||
using namespace T6;
|
using namespace T6;
|
||||||
|
|
||||||
@ -15,6 +16,14 @@ std::string AssetDumperGfxImage::GetFileNameForAsset(Zone* zone, GfxImage* asset
|
|||||||
|
|
||||||
void AssetDumperGfxImage::DumpAsset(Zone* zone, GfxImage* asset, FileAPI::File* out)
|
void AssetDumperGfxImage::DumpAsset(Zone* zone, GfxImage* asset, FileAPI::File* out)
|
||||||
{
|
{
|
||||||
IwiWriter27 writer;
|
switch(ObjWriting::Configuration.ImageOutputFormat)
|
||||||
writer.DumpImage(out, asset->texture.texture);
|
{
|
||||||
|
case ObjWriting::Configuration_t::ImageOutputFormat_e::DDS:
|
||||||
|
// TODO this is not yet supported
|
||||||
|
break;
|
||||||
|
case ObjWriting::Configuration_t::ImageOutputFormat_e::IWI:
|
||||||
|
IwiWriter27 writer;
|
||||||
|
writer.DumpImage(out, asset->texture.texture);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user