Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IImageLoader.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_SURFACE_LOADER_HPP_INCLUDED
6#define NIRT_I_SURFACE_LOADER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/IImage.hpp>
10#include <nirtcpp/core/engine/ITexture.hpp>
11#include <nirtcpp/core/engine/path.hpp>
12#include <nirtcpp/core/engine/irrArray.hpp>
13
14namespace nirt
15{
16namespace io
17{
18 class IReadFile;
19} // end namespace io
20namespace video
21{
22
24
28class IImageLoader : public virtual IReferenceCounted
29{
30public:
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 nirt
64
65#endif
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
Interface providing read access to a file.
Definition IReadFile.hpp:19
Class which is able to create a image from a file.
Definition IImageLoader.hpp:29
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.hpp:53
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.
Interface for software image data.
Definition IImage.hpp:26
E_TEXTURE_TYPE
Enumeration describing the type of ITexture.
Definition ITexture.hpp:168
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print