]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CImageWriterPNG.h
4d6619f5cbdef40f5ae89ab2d0376a943a69d396
[irrlicht.git] / source / Irrlicht / CImageWriterPNG.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef _C_IMAGE_WRITER_PNG_H_INCLUDED__\r
6 #define _C_IMAGE_WRITER_PNG_H_INCLUDED__\r
7 \r
8 #include "IrrCompileConfig.h"\r
9 \r
10 #include "IImageWriter.h"\r
11 \r
12 namespace irr\r
13 {\r
14 namespace video\r
15 {\r
16 \r
17 class CImageWriterPNG : public IImageWriter\r
18 {\r
19 public:\r
20         //! constructor\r
21         CImageWriterPNG();\r
22 \r
23         //! return true if this writer can write a file with the given extension\r
24         bool isAWriteableFileExtension(const io::path& filename) const override;\r
25 \r
26         //! write image to file\r
27         bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const override;\r
28 };\r
29 \r
30 } // namespace video\r
31 } // namespace irr\r
32 \r
33 #endif // _C_IMAGE_WRITER_PNG_H_INCLUDED__\r