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
5 // this file was created by rt (www.tomkorp.com), based on ttk's png-reader
\r
6 // i wanted to be able to read in PNG images with irrlicht :)
\r
7 // why? lossless compression with 8-bit alpha channel!
\r
9 #ifndef __C_IMAGE_LOADER_PNG_H_INCLUDED__
\r
10 #define __C_IMAGE_LOADER_PNG_H_INCLUDED__
\r
12 #include "IrrCompileConfig.h"
\r
14 #include "IImageLoader.h"
\r
21 //! Surface Loader for PNG files
\r
22 class CImageLoaderPng : public IImageLoader
\r
26 //! returns true if the file maybe is able to be loaded by this class
\r
27 //! based on the file extension (e.g. ".png")
\r
28 bool isALoadableFileExtension(const io::path& filename) const override;
\r
30 //! returns true if the file maybe is able to be loaded by this class
\r
31 bool isALoadableFileFormat(io::IReadFile* file) const override;
\r
33 //! creates a surface from the file
\r
34 IImage* loadImage(io::IReadFile* file) const override;
\r
38 } // end namespace video
\r
39 } // end namespace irr
\r