arsa  2.7
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 "ITexture.h"
11 #include "path.h"
12 #include "irrArray.h"
13 
14 namespace irr
15 {
16 namespace io
17 {
18  class IReadFile;
19 } // end namespace io
20 namespace video
21 {
22 
24 
28 class IImageLoader : public virtual IReferenceCounted
29 {
30 public:
31 
33 
36  virtual bool isALoadableFileExtension(const io::path& filename) const = 0;
37 
39 
42  virtual bool isALoadableFileFormat(io::IReadFile* file) const = 0;
43 
45 
47  virtual IImage* loadImage(io::IReadFile* file) const = 0;
48 
50 
54  {
56 
57  return image;
58  }
59 };
60 
61 
62 } // end namespace video
63 } // end namespace irr
64 
65 #endif
66 
Interface providing read access to a file.
Definition: IReadFile.h:18
GLeglImageOES image
Definition: SDL_opengl.h:2148
virtual IImage * loadImage(io::IReadFile *file) const =0
Creates a surface from the file.
E_TEXTURE_TYPE
Enumeration describing the type of ITexture.
Definition: ITexture.h:159
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual bool isALoadableFileExtension(const io::path &filename) const =0
Check if the file might be loaded by this class.
Interface for software image data.
Definition: IImage.h:25
Class which is able to create a image from a file.
Definition: IImageLoader.h:28
Self reallocating template array (like stl vector) with additional features.
Definition: irrArray.h:22
Base class of most objects of the Irrlicht Engine.
GLuint GLuint GLsizei GLenum type
Definition: SDL_opengl.h:1571
virtual bool isALoadableFileFormat(io::IReadFile *file) const =0
Check if the file might be loaded by this class.
virtual core::array< IImage * > loadImages(io::IReadFile *file, E_TEXTURE_TYPE *type) const
Creates a multiple surfaces from the file eg. whole cube map.
Definition: IImageLoader.h:53