]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CImageWriterJPG.h
ec8a1b85c8d2269a1c702e4fcbc96acfa04276bd
[irrlicht.git] / source / Irrlicht / CImageWriterJPG.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_JPG_H_INCLUDED__\r
6 #define _C_IMAGE_WRITER_JPG_H_INCLUDED__\r
7 \r
8 #include "IrrCompileConfig.h"\r
9 \r
10 #ifdef _IRR_COMPILE_WITH_JPG_WRITER_\r
11 \r
12 #include "IImageWriter.h"\r
13 \r
14 namespace irr\r
15 {\r
16 namespace video\r
17 {\r
18 \r
19 class CImageWriterJPG : public IImageWriter\r
20 {\r
21 public:\r
22         //! constructor\r
23         CImageWriterJPG();\r
24 \r
25         //! return true if this writer can write a file with the given extension\r
26         bool isAWriteableFileExtension(const io::path& filename) const override;\r
27 \r
28         //! write image to file\r
29         bool writeImage(io::IWriteFile *file, IImage *image, u32 param) const override;\r
30 };\r
31 \r
32 }\r
33 }\r
34 \r
35 #endif // _C_IMAGE_WRITER_JPG_H_INCLUDED__\r
36 #endif\r
37 \r