diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/CImageWriterPSD.cpp | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CImageWriterPSD.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CImageWriterPSD.cpp b/libraries/irrlicht-1.8/source/Irrlicht/CImageWriterPSD.cpp new file mode 100644 index 0000000..952eb0b --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/CImageWriterPSD.cpp | |||
@@ -0,0 +1,46 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | ||
2 | // This file is part of the "Irrlicht Engine". | ||
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | ||
4 | |||
5 | #include "CImageWriterPSD.h" | ||
6 | |||
7 | #ifdef _IRR_COMPILE_WITH_PSD_WRITER_ | ||
8 | |||
9 | #include "CImageLoaderPSD.h" | ||
10 | #include "IWriteFile.h" | ||
11 | #include "os.h" // for logging | ||
12 | #include "irrString.h" | ||
13 | |||
14 | namespace irr | ||
15 | { | ||
16 | namespace video | ||
17 | { | ||
18 | |||
19 | IImageWriter* createImageWriterPSD() | ||
20 | { | ||
21 | return new CImageWriterPSD; | ||
22 | } | ||
23 | |||
24 | CImageWriterPSD::CImageWriterPSD() | ||
25 | { | ||
26 | #ifdef _DEBUG | ||
27 | setDebugName("CImageWriterPSD"); | ||
28 | #endif | ||
29 | } | ||
30 | |||
31 | bool CImageWriterPSD::isAWriteableFileExtension(const io::path& filename) const | ||
32 | { | ||
33 | return core::hasFileExtension ( filename, "psd" ); | ||
34 | } | ||
35 | |||
36 | bool CImageWriterPSD::writeImage(io::IWriteFile *file, IImage *image,u32 param) const | ||
37 | { | ||
38 | os::Printer::log("PSD writer not yet implemented. Image not written.", ELL_WARNING); | ||
39 | return false; | ||
40 | } | ||
41 | |||
42 | } // namespace video | ||
43 | } // namespace irr | ||
44 | |||
45 | #endif | ||
46 | |||