Class which is able to create a image from a file. More...
#include <IImageLoader.h>
Class which is able to create a image from a file.
If you want the Irrlicht Engine be able to load textures of currently unsupported file formats (e.g .gif), then implement this and add your new Surface loader with IVideoDriver::addExternalImageLoader() to the engine.
Definition at line 26 of file IImageLoader.h.
virtual bool irr::video::IImageLoader::isALoadableFileExtension | ( | const io::path & | filename | ) | const [pure virtual] |
Check if the file might be loaded by this class.
Check is based on the file extension (e.g. ".tga")
filename | Name of file to check. |
virtual bool irr::video::IImageLoader::isALoadableFileFormat | ( | io::IReadFile * | file | ) | const [pure virtual] |
Check if the file might be loaded by this class.
Check might look into the file.
file | File handle to check. |
virtual IImage* irr::video::IImageLoader::loadImage | ( | io::IReadFile * | file | ) | const [pure virtual] |
Creates a surface from the file.
file | File handle to check. |