FIFE::GLImage Class Reference

#include <glimage.h>

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

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

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.

See also:
Image
Note:
Width and height are not limited to powers of two; non-power of two images will be converted internally.
Todo:
Check the correctness of the generateTexture function on big endian systems (ppc)

Definition at line 58 of file glimage.h.


Member Function Documentation

void FIFE::GLImage::invalidate (  )  [virtual]

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

Implements FIFE::Image.

Definition at line 64 of file glimage.cpp.

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.

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 89 of file glimage.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::GLImage::setClipArea ( const Rect cliparea,
bool  clear 
) [protected, virtual]

Sets given clip area into image

See also:
pushClipArea

Implements FIFE::Image.

Definition at line 237 of file glimage.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:
Generated on Wed Nov 23 13:05:16 2011 for FIFE by  doxygen 1.6.3