Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

gcn::ImageLoader Class Reference

#include <imageloader.hpp>

Inheritance diagram for gcn::ImageLoader:

gcn::AllegroImageLoader gcn::OpenGLSDLImageLoader gcn::SDLImageLoader 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 71 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 Thu Jun 8 19:48:36 2006 for Guichan by doxygen 1.3.8