#include <image.h>


Public Member Functions | |
| Image (SDL_Surface *surface) | |
| Image (const uint8_t *data, unsigned int width, unsigned int height) | |
| virtual void | render (const Rect &rect, SDL_Surface *dst, unsigned char alpha=255)=0 |
| void | render (const Rect &rect, unsigned char alpha=255) |
| SDL_Surface * | detachSurface () |
Protected Member Functions | |
| virtual void | setClipArea (const Rect &cliparea, bool clear)=0 |
| virtual void | clearClipArea () |
Base Class for Images.
Definition at line 123 of file image.h.
| FIFE::Image::Image | ( | SDL_Surface * | surface | ) |
| FIFE::Image::Image | ( | const uint8_t * | data, | |
| unsigned int | width, | |||
| unsigned int | height | |||
| ) |
| void FIFE::Image::clearClipArea | ( | ) | [protected, virtual] |
Clears any possible clip areas
Definition at line 171 of file image.cpp.
References setClipArea().
| SDL_Surface * FIFE::Image::detachSurface | ( | ) |
| virtual void FIFE::Image::render | ( | const Rect & | rect, | |
| SDL_Surface * | dst, | |||
| unsigned char | alpha = 255 | |||
| ) | [pure virtual] |
Renders itself to the Destination surface at the rectangle rect.
| rect | The position and clipping where to draw this image to. | |
| target | Target surface to draw to, e.g. main screen or other image | |
| alpha | The alpha value, with which to draw self. opaque by default. |
Implemented in FIFE::GLImage, and FIFE::SDLImage.
Referenced by render(), and FIFE::SdlGuiGraphics::SdlGuiGraphics().

| void FIFE::Image::render | ( | const Rect & | rect, | |
| unsigned char | alpha = 255 | |||
| ) |
| virtual void FIFE::Image::setClipArea | ( | const Rect & | cliparea, | |
| bool | clear | |||
| ) | [protected, pure virtual] |
Sets given clip area into image
Implemented in FIFE::GLImage, and FIFE::SDLImage.
Referenced by clearClipArea().

1.7.1