#include <gleimage.h>


Public Member Functions | |
| virtual void | invalidate () |
| virtual void | setSurface (SDL_Surface *surface) |
| virtual void | render (const Rect &rect, uint8_t alpha=255, uint8_t const *rgb=0) |
| virtual void | useSharedImage (const ImagePtr &shared, const Rect ®ion) |
| virtual void | forceLoadInternal () |
| virtual void | copySubimage (uint32_t xoffset, uint32_t yoffset, const ImagePtr &img) |
Implements an Image using experimental 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 53 of file gleimage.h.
| void FIFE::GLeImage::copySubimage | ( | uint32_t | xoffset, | |
| uint32_t | yoffset, | |||
| const ImagePtr & | img | |||
| ) | [virtual] |
Copies given image into this one with respect to given offsets
Reimplemented from FIFE::Image.
Definition at line 383 of file gleimage.cpp.
| void FIFE::GLeImage::forceLoadInternal | ( | ) | [virtual] |
Forces to load the image into internal memory of GPU
Implements FIFE::Image.
Definition at line 358 of file gleimage.cpp.
| void FIFE::GLeImage::invalidate | ( | ) | [virtual] |
Invalidates the Image causing it to be reset or re-loaded
Implements FIFE::Image.
Definition at line 92 of file gleimage.cpp.
| void FIFE::GLeImage::render | ( | const Rect & | rect, | |
| uint8_t | alpha = 255, |
|||
| uint8_t const * | rgb = 0 | |||
| ) | [virtual] |
Renders itself to the current render target (main screen or attached destination image) at the rectangle rect. Convenience function
| rect | The position and clipping where to draw this image to. | |
| alpha | The alpha value, with which to draw self. | |
| rgb | The color value of overlay if any. |
Implements FIFE::Image.
Definition at line 146 of file gleimage.cpp.
| void FIFE::GLeImage::setSurface | ( | SDL_Surface * | surface | ) | [virtual] |
This frees the current suface and replaces it with the surface passed in the parameter (which can be NULL).
| surface | the SDL_Surface to use for this image |
Implements FIFE::Image.
Definition at line 96 of file gleimage.cpp.
References FIFE::Image::reset().
After this call all image data will be taken from the given image and its subregion
Implements FIFE::Image.
Definition at line 339 of file gleimage.cpp.
References FIFE::SharedPtr< T >::get().
1.7.1