FIFE 2008.0
|
#include <image.h>
Public Member Functions | |
Image (SDL_Surface *surface) | |
Image (const uint8_t *data, unsigned int width, unsigned int height) | |
virtual void | invalidate ()=0 |
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 () |
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::invalidate | ( | ) | [pure virtual] |
Invalidates the Image causing it to be reset or re-loaded
Implemented in FIFE::GLImage, and FIFE::SDLImage.
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 FIFE::Cursor::draw(), and render().
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().