diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPPM.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPPM.h b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPPM.h index 3c015a8..d3c6606 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPPM.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderPPM.h | |||
@@ -1,55 +1,55 @@ | |||
1 | // Copyright (C) 2007-2012 Christian Stehno | 1 | // Copyright (C) 2007-2012 Christian Stehno |
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_PPM_H_INCLUDED__ | 5 | #ifndef __C_IMAGE_LOADER_PPM_H_INCLUDED__ |
6 | #define __C_IMAGE_LOADER_PPM_H_INCLUDED__ | 6 | #define __C_IMAGE_LOADER_PPM_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IrrCompileConfig.h" | 8 | #include "IrrCompileConfig.h" |
9 | 9 | ||
10 | #ifdef _IRR_COMPILE_WITH_PPM_LOADER_ | 10 | #ifdef _IRR_COMPILE_WITH_PPM_LOADER_ |
11 | 11 | ||
12 | #include "IImageLoader.h" | 12 | #include "IImageLoader.h" |
13 | #include "irrString.h" | 13 | #include "irrString.h" |
14 | 14 | ||
15 | 15 | ||
16 | namespace irr | 16 | namespace irr |
17 | { | 17 | { |
18 | namespace video | 18 | namespace video |
19 | { | 19 | { |
20 | 20 | ||
21 | 21 | ||
22 | /*! | 22 | /*! |
23 | Surface Loader for SUN Pixmaps | 23 | Surface Loader for SUN Pixmaps |
24 | */ | 24 | */ |
25 | class CImageLoaderPPM : public IImageLoader | 25 | class CImageLoaderPPM : public IImageLoader |
26 | { | 26 | { |
27 | public: | 27 | public: |
28 | 28 | ||
29 | //! constructor | 29 | //! constructor |
30 | CImageLoaderPPM(); | 30 | CImageLoaderPPM(); |
31 | 31 | ||
32 | //! returns true if the file maybe is able to be loaded by this class | 32 | //! returns true if the file maybe is able to be loaded by this class |
33 | //! based on the file extension (e.g. ".tga") | 33 | //! based on the file extension (e.g. ".tga") |
34 | virtual bool isALoadableFileExtension(const io::path& filename) const; | 34 | virtual bool isALoadableFileExtension(const io::path& filename) const; |
35 | 35 | ||
36 | //! returns true if the file maybe is able to be loaded by this class | 36 | //! returns true if the file maybe is able to be loaded by this class |
37 | virtual bool isALoadableFileFormat(io::IReadFile* file) const; | 37 | virtual bool isALoadableFileFormat(io::IReadFile* file) const; |
38 | 38 | ||
39 | //! creates a surface from the file | 39 | //! creates a surface from the file |
40 | virtual IImage* loadImage(io::IReadFile* file) const; | 40 | virtual IImage* loadImage(io::IReadFile* file) const; |
41 | 41 | ||
42 | private: | 42 | private: |
43 | //! read the next token from file | 43 | //! read the next token from file |
44 | void getNextToken(io::IReadFile* file, core::stringc& token) const; | 44 | void getNextToken(io::IReadFile* file, core::stringc& token) const; |
45 | //! skip to next token (skip whitespace) | 45 | //! skip to next token (skip whitespace) |
46 | void skipToNextToken(io::IReadFile* file) const; | 46 | void skipToNextToken(io::IReadFile* file) const; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | } // end namespace video | 49 | } // end namespace video |
50 | } // end namespace irr | 50 | } // end namespace irr |
51 | 51 | ||
52 | 52 | ||
53 | #endif | 53 | #endif |
54 | #endif | 54 | #endif |
55 | 55 | ||