Skylicht Engine
Loading...
Searching...
No Matches
IImageLoader.h
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
IReferenceCounted()
Constructor.
Definition IReferenceCounted.h:50
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.
Definition IImageLoader.h:27
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.
This namespace provides interfaces for input/output: Reading and writing files, accessing zip archive...
Definition EAttributes.h:11
core::string< fschar_t > path
Type used for all file system related strings.
Definition path.h:17
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33