#include <imageloader.hpp>
Inheritance diagram for gcn::ImageLoader:
Contains basic image loading functions every image loader should have. Image loaders should inherit from this class and impements it's functions.
Definition at line 73 of file imageloader.hpp.
Public Member Functions | |
virtual | ~ImageLoader () |
Destructor. | |
virtual Image * | load (const std::string &filename, bool convertToDisplayFormat=true)=0 |
Loads an image by calling the image's ImageLoader. |
virtual Image* gcn::ImageLoader::load | ( | const std::string & | filename, | |
bool | convertToDisplayFormat = true | |||
) | [pure virtual] |
Loads an image by calling the image's ImageLoader.
NOTE: The functions getPixel and putPixel in Image are only guaranteed to work before an image has been converted to display format.
filename | the file to load. | |
convertToDisplayFormat | true if the image should be converted to display, false otherwise. |
Implemented in gcn::AllegroImageLoader, gcn::OpenGLSDLImageLoader, and gcn::SDLImageLoader.
Referenced by gcn::Image::load().