Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
IImageLoader.h
Go to the documentation of this file.
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#ifndef __I_SURFACE_LOADER_H_INCLUDED__
6#define __I_SURFACE_LOADER_H_INCLUDED__
7
8#include "IReferenceCounted.h"
9#include "IImage.h"
10#include "path.h"
11
12namespace irr
13{
14namespace io
15{
16 class IReadFile;
17} // end namespace io
18namespace video
19{
20
22
26class IImageLoader : public virtual IReferenceCounted
27{
28public:
29
31
34 virtual bool isALoadableFileExtension(const io::path& filename) const = 0;
35
37
40 virtual bool isALoadableFileFormat(io::IReadFile* file) const = 0;
41
43
45 virtual IImage* loadImage(io::IReadFile* file) const = 0;
46};
47
48
49} // end namespace video
50} // end namespace irr
51
52#endif
53
Base class of most objects of the Irrlicht Engine.
Interface providing read acess to a file.
Definition IReadFile.h:18
Interface for software image data.
Definition IImage.h:23
Class which is able to create a image from a file.
virtual bool isALoadableFileExtension(const io::path &filename) const =0
Check if the file might be loaded by this class.
virtual IImage * loadImage(io::IReadFile *file) const =0
Creates a surface from the file.
virtual bool isALoadableFileFormat(io::IReadFile *file) const =0
Check if the file might be loaded by this class.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13