#include <sdlimageloader.hpp>
Inheritance diagram for gcn::SDLImageLoader:
Definition at line 72 of file sdlimageloader.hpp.
Public Member Functions | |
virtual Image * | load (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) |
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.
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().