gcn::ImageLoader Class Reference

#include <imageloader.hpp>

Inheritance diagram for gcn::ImageLoader:

gcn::AllegroImageLoader gcn::SDLImageLoader gcn::OpenGLSDLImageLoader List of all members.

Detailed Description

ImageLoaders base class.

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 Imageload (const std::string &filename, bool convertToDisplayFormat=true)=0
 Loads an image by calling the image's ImageLoader.


Member Function Documentation

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.

Parameters:
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().


The documentation for this class was generated from the following file:
Generated on Sat Jul 29 19:38:48 2006 for Guichan by  doxygen 1.4.7