aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2016-03-28 22:28:34 +1000
committerDavid Walter Seikel2016-03-28 22:28:34 +1000
commit7028cbe09c688437910a25623098762bf0fa592d (patch)
tree10b5af58277d9880380c2251f109325542c4e6eb /src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h
parentMove lemon to the src/others directory. (diff)
downloadSledjHamr-7028cbe09c688437910a25623098762bf0fa592d.zip
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.gz
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.bz2
SledjHamr-7028cbe09c688437910a25623098762bf0fa592d.tar.xz
Move Irrlicht to src/others.
Diffstat (limited to 'src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h')
-rw-r--r--src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h b/src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h
new file mode 100644
index 0000000..a3faac2
--- /dev/null
+++ b/src/others/irrlicht-1.8.1/source/Irrlicht/CImageLoaderPNG.h
@@ -0,0 +1,45 @@
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// this file was created by rt (www.tomkorp.com), based on ttk's png-reader
6// i wanted to be able to read in PNG images with irrlicht :)
7// why? lossless compression with 8-bit alpha channel!
8
9#ifndef __C_IMAGE_LOADER_PNG_H_INCLUDED__
10#define __C_IMAGE_LOADER_PNG_H_INCLUDED__
11
12#include "IrrCompileConfig.h"
13
14#ifdef _IRR_COMPILE_WITH_PNG_LOADER_
15
16#include "IImageLoader.h"
17
18namespace irr
19{
20namespace video
21{
22
23//! Surface Loader for PNG files
24class CImageLoaderPng : public IImageLoader
25{
26public:
27
28 //! returns true if the file maybe is able to be loaded by this class
29 //! based on the file extension (e.g. ".png")
30 virtual bool isALoadableFileExtension(const io::path& filename) const;
31
32 //! returns true if the file maybe is able to be loaded by this class
33 virtual bool isALoadableFileFormat(io::IReadFile* file) const;
34
35 //! creates a surface from the file
36 virtual IImage* loadImage(io::IReadFile* file) const;
37};
38
39
40} // end namespace video
41} // end namespace irr
42
43#endif
44#endif
45