FIFE 2008.0
FIFE::SDLImage Class Reference

#include <sdlimage.h>

Inheritance diagram for FIFE::SDLImage:
Collaboration diagram for FIFE::SDLImage:

List of all members.

Public Member Functions

void invalidate ()
void render (const Rect &rect, SDL_Surface *dst, unsigned char alpha=255)

Protected Member Functions

void setClipArea (const Rect &cliparea, bool clear)

Detailed Description

The SDL implementation of the Image base class.

Definition at line 40 of file sdlimage.h.


Member Function Documentation

void FIFE::SDLImage::invalidate ( ) [inline, virtual]

Invalidates the Image causing it to be reset or re-loaded

Implements FIFE::Image.

Definition at line 45 of file sdlimage.h.

void FIFE::SDLImage::render ( const Rect rect,
SDL_Surface *  dst,
unsigned char  alpha = 255 
) [virtual]

Renders itself to the Destination surface at the rectangle rect.

Parameters:
rectThe position and clipping where to draw this image to.
targetTarget surface to draw to, e.g. main screen or other image
alphaThe alpha value, with which to draw self. opaque by default.

Implements FIFE::Image.

Definition at line 309 of file sdlimage.cpp.

References FIFE::RectType< T >::bottom(), FIFE::RectType< T >::h, FIFE::RectType< T >::right(), FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.

void FIFE::SDLImage::setClipArea ( const Rect cliparea,
bool  clear 
) [protected, virtual]

Sets given clip area into image

See also:
pushClipArea

Implements FIFE::Image.

Definition at line 834 of file sdlimage.cpp.

References FIFE::RectType< T >::h, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Enumerations Enumerator