#include <glimage.h>
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) |
Implements an Image using OpenGL.
This class contains a texture handle bound to the data given to the constructor; it draws a textured Quad to the screen.
Definition at line 58 of file glimage.h.
void FIFE::GLImage::render | ( | const Rect & | rect, | |
SDL_Surface * | dst, | |||
unsigned char | alpha = 255 | |||
) | [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. |
setting transparency for the whole primitive:
Implements FIFE::Image.
Definition at line 76 of file glimage.cpp.
References FIFE::Rect::bottom(), FIFE::Rect::h, FIFE::Rect::right(), FIFE::Rect::w, FIFE::Rect::x, and FIFE::Rect::y.
void FIFE::GLImage::setClipArea | ( | const Rect & | cliparea, | |
bool | clear | |||
) | [protected, virtual] |
Sets given clip area into image
Implements FIFE::Image.
Definition at line 310 of file glimage.cpp.
References FIFE::Rect::h, FIFE::Rect::w, FIFE::Rect::x, and FIFE::Rect::y.