gcn::SDLImageLoader Class Reference

#include <sdlimageloader.hpp>

Inheritance diagram for gcn::SDLImageLoader:

gcn::ImageLoader gcn::OpenGLSDLImageLoader List of all members.

Detailed Description

SDL implementation of ImageLoader.

Definition at line 72 of file sdlimageloader.hpp.

Public Member Functions

virtual Imageload (const std::string &filename, bool convertToDisplayFormat=true)
 Loads an image by calling the image's ImageLoader.

Protected Member Functions

virtual SDL_Surface * loadSDLSurface (const std::string &filename)
virtual SDL_Surface * convertToStandardFormat (SDL_Surface *surface)


Member Function Documentation

Image * gcn::SDLImageLoader::load ( const std::string &  filename,
bool  convertToDisplayFormat = true 
) [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.

Implements gcn::ImageLoader.

Reimplemented in gcn::OpenGLSDLImageLoader.

Definition at line 70 of file sdlimageloader.cpp.

References gcn::Image::convertToDisplayFormat(), convertToStandardFormat(), and loadSDLSurface().


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