mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-20 11:47:55 -05:00
ObjWriting: Add DDS writer basis
This commit is contained in:
18
src/ObjWriting/Image/DdsWriter.cpp
Normal file
18
src/ObjWriting/Image/DdsWriter.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include "DdsWriter.h"
|
||||
|
||||
DdsWriter::~DdsWriter()
|
||||
= default;
|
||||
|
||||
bool DdsWriter::SupportsImageFormat(const ImageFormat* imageFormat)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
std::string DdsWriter::GetFileExtension()
|
||||
{
|
||||
return ".dds";
|
||||
}
|
||||
|
||||
void DdsWriter::DumpImage(FileAPI::IFile* file, Texture* texture)
|
||||
{
|
||||
}
|
12
src/ObjWriting/Image/DdsWriter.h
Normal file
12
src/ObjWriting/Image/DdsWriter.h
Normal file
@ -0,0 +1,12 @@
|
||||
#pragma once
|
||||
#include "IImageWriter.h"
|
||||
|
||||
class DdsWriter final : public IImageWriter
|
||||
{
|
||||
public:
|
||||
~DdsWriter() override;
|
||||
|
||||
bool SupportsImageFormat(const ImageFormat * imageFormat) override;
|
||||
std::string GetFileExtension() override;
|
||||
void DumpImage(FileAPI::IFile * file, Texture * texture) override;
|
||||
};
|
Reference in New Issue
Block a user