38 lines
726 B
C++
38 lines
726 B
C++
|
|
#include "CImageWriterPSD.h"
|
|
#include "CImageLoaderPSD.h"
|
|
#include "IWriteFile.h"
|
|
#include "os.h" // for logging
|
|
#include "irrString.h"
|
|
|
|
namespace irr
|
|
{
|
|
namespace video
|
|
{
|
|
|
|
IImageWriter* createImageWriterPSD()
|
|
{
|
|
return new CImageWriterPSD;
|
|
}
|
|
|
|
CImageWriterPSD::CImageWriterPSD()
|
|
{
|
|
#ifdef _DEBUG
|
|
setDebugName("CImageWriterPSD");
|
|
#endif
|
|
}
|
|
|
|
bool CImageWriterPSD::isAWriteableFileExtension(const c8* fileName) const
|
|
{
|
|
return strstr(fileName, ".psd") != 0;
|
|
}
|
|
|
|
bool CImageWriterPSD::writeImage(io::IWriteFile *file, IImage *image,u32 param) const
|
|
{
|
|
os::Printer::log("PSD writer not yet implemented. Image not written.", ELL_WARNING);
|
|
return false;
|
|
}
|
|
|
|
} // namespace video
|
|
} // namespace irr
|