diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h index 4bd3b7f..690a6ab 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPCX.h | |||
@@ -1,82 +1,82 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __C_IMAGE_LOADER_PCX_H_INCLUDED__ | 5 | #ifndef __C_IMAGE_LOADER_PCX_H_INCLUDED__ |
6 | #define __C_IMAGE_LOADER_PCX_H_INCLUDED__ | 6 | #define __C_IMAGE_LOADER_PCX_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IrrCompileConfig.h" | 8 | #include "IrrCompileConfig.h" |
9 | 9 | ||
10 | #include "IImageLoader.h" | 10 | #include "IImageLoader.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | namespace video | 14 | namespace video |
15 | { | 15 | { |
16 | 16 | ||
17 | #if defined(_IRR_COMPILE_WITH_PCX_LOADER_) || defined(_IRR_COMPILE_WITH_PCX_WRITER_) | 17 | #if defined(_IRR_COMPILE_WITH_PCX_LOADER_) || defined(_IRR_COMPILE_WITH_PCX_WRITER_) |
18 | 18 | ||
19 | // byte-align structures | 19 | // byte-align structures |
20 | #include "irrpack.h" | 20 | #include "irrpack.h" |
21 | 21 | ||
22 | struct SPCXHeader | 22 | struct SPCXHeader |
23 | { | 23 | { |
24 | u8 Manufacturer; | 24 | u8 Manufacturer; |
25 | u8 Version; | 25 | u8 Version; |
26 | u8 Encoding; | 26 | u8 Encoding; |
27 | u8 BitsPerPixel; | 27 | u8 BitsPerPixel; |
28 | u16 XMin; | 28 | u16 XMin; |
29 | u16 YMin; | 29 | u16 YMin; |
30 | u16 XMax; | 30 | u16 XMax; |
31 | u16 YMax; | 31 | u16 YMax; |
32 | u16 HorizDPI; | 32 | u16 HorizDPI; |
33 | u16 VertDPI; | 33 | u16 VertDPI; |
34 | u8 Palette[48]; | 34 | u8 Palette[48]; |
35 | u8 Reserved; | 35 | u8 Reserved; |
36 | u8 Planes; | 36 | u8 Planes; |
37 | u16 BytesPerLine; | 37 | u16 BytesPerLine; |
38 | u16 PaletteType; | 38 | u16 PaletteType; |
39 | u16 HScrSize; | 39 | u16 HScrSize; |
40 | u16 VScrSize; | 40 | u16 VScrSize; |
41 | u8 Filler[54]; | 41 | u8 Filler[54]; |
42 | } PACK_STRUCT; | 42 | } PACK_STRUCT; |
43 | 43 | ||
44 | 44 | ||
45 | // Default alignment | 45 | // Default alignment |
46 | #include "irrunpack.h" | 46 | #include "irrunpack.h" |
47 | 47 | ||
48 | #endif // compile with loader or writer | 48 | #endif // compile with loader or writer |
49 | 49 | ||
50 | #ifdef _IRR_COMPILE_WITH_PCX_LOADER_ | 50 | #ifdef _IRR_COMPILE_WITH_PCX_LOADER_ |
51 | 51 | ||
52 | /*! | 52 | /*! |
53 | Image Loader for Windows PCX bitmaps. | 53 | Image Loader for Windows PCX bitmaps. |
54 | This loader was written and sent in by Dean P. Macri. I modified | 54 | This loader was written and sent in by Dean P. Macri. I modified |
55 | only some small bits of it. | 55 | only some small bits of it. |
56 | */ | 56 | */ |
57 | class CImageLoaderPCX : public IImageLoader | 57 | class CImageLoaderPCX : public IImageLoader |
58 | { | 58 | { |
59 | public: | 59 | public: |
60 | 60 | ||
61 | //! constructor | 61 | //! constructor |
62 | CImageLoaderPCX(); | 62 | CImageLoaderPCX(); |
63 | 63 | ||
64 | //! returns true if the file maybe is able to be loaded by this class | 64 | //! returns true if the file maybe is able to be loaded by this class |
65 | //! based on the file extension (e.g. ".tga") | 65 | //! based on the file extension (e.g. ".tga") |
66 | virtual bool isALoadableFileExtension(const io::path& filename) const; | 66 | virtual bool isALoadableFileExtension(const io::path& filename) const; |
67 | 67 | ||
68 | //! returns true if the file maybe is able to be loaded by this class | 68 | //! returns true if the file maybe is able to be loaded by this class |
69 | virtual bool isALoadableFileFormat(io::IReadFile* file) const; | 69 | virtual bool isALoadableFileFormat(io::IReadFile* file) const; |
70 | 70 | ||
71 | //! creates a surface from the file | 71 | //! creates a surface from the file |
72 | virtual IImage* loadImage(io::IReadFile* file) const; | 72 | virtual IImage* loadImage(io::IReadFile* file) const; |
73 | 73 | ||
74 | }; | 74 | }; |
75 | 75 | ||
76 | #endif // compile with loader | 76 | #endif // compile with loader |
77 | 77 | ||
78 | } // end namespace video | 78 | } // end namespace video |
79 | } // end namespace irr | 79 | } // end namespace irr |
80 | 80 | ||
81 | #endif | 81 | #endif |
82 | 82 | ||