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.

Protected Member Functions

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


Member Function Documentation

Image * gcn::SDLImageLoader::load ( const std::string &  filename,
bool  convertToDisplayFormat = true 
) [virtual]

Loads an image.

NOTE: The functions Image::getPixel and Image::putPixel are only guaranteed to work before an image has been converted to display format.

Parameters:
filename The filename of the image 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 Sun Jan 20 21:48:15 2008 for Guichan by  doxygen 1.5.2