#include <imageloader.h>
Definition at line 33 of file imageloader.h.
Public Member Functions | |
ProxyImage (SDL_Surface *) | |
~ProxyImage () | |
void | free () |
int | getWidth () const |
int | getHeight () const |
gcn::Color | getPixel (int x, int y) |
void | putPixel (int x, int y, gcn::Color const &color) |
void | convertToDisplayFormat () |
::Image * | getImage () const |
Gets the image handled by this proxy. | |
Private Attributes | |
::Image * | mImage |
The real image. | |
SDL_Surface * | mSDLImage |
An SDL surface kept around until Guichan is done reading pixels from an OpenGL texture. |
ProxyImage::ProxyImage | ( | SDL_Surface * | s | ) |
Definition at line 32 of file imageloader.cpp.
ProxyImage::~ProxyImage | ( | ) |
Definition at line 37 of file imageloader.cpp.
void ProxyImage::free | ( | ) |
Definition at line 42 of file imageloader.cpp.
int ProxyImage::getWidth | ( | void | ) | const |
Definition at line 56 of file imageloader.cpp.
int ProxyImage::getHeight | ( | void | ) | const |
Definition at line 61 of file imageloader.cpp.
gcn::Color ProxyImage::getPixel | ( | int | x, | |
int | y | |||
) |
Definition at line 66 of file imageloader.cpp.
void ProxyImage::putPixel | ( | int | x, | |
int | y, | |||
gcn::Color const & | color | |||
) |
Definition at line 72 of file imageloader.cpp.
void ProxyImage::convertToDisplayFormat | ( | ) |
Definition at line 78 of file imageloader.cpp.
::Image* ProxyImage::getImage | ( | ) | const [inline] |
::Image* ProxyImage::mImage [private] |
SDL_Surface* ProxyImage::mSDLImage [private] |
An SDL surface kept around until Guichan is done reading pixels from an OpenGL texture.
Definition at line 59 of file imageloader.h.