FIFE::SDLImage Class Reference

#include <sdlimage.h>

Inheritance diagram for FIFE::SDLImage:
Inheritance graph
[legend]
Collaboration diagram for FIFE::SDLImage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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::render ( const Rect rect,
SDL_Surface *  dst,
unsigned char  alpha = 255 
) [virtual]

Renders itself to the Destination surface at the rectangle rect.

Parameters:
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.

Implements FIFE::Image.

Definition at line 195 of file sdlimage.cpp.

References FIFE::Rect::bottom(), FIFE::Rect::h, FIFE::Rect::right(), FIFE::Rect::w, FIFE::Rect::x, and FIFE::Rect::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 652 of file sdlimage.cpp.

References FIFE::Rect::h, FIFE::Rect::w, FIFE::Rect::x, and FIFE::Rect::y.


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.2-20100208