FIFE
2008.0
|
#include <sdlimage.h>
Public Member Functions | |
void | invalidate () |
void | render (const Rect &rect, SDL_Surface *dst, unsigned char alpha=255) |
![]() | |
Image (SDL_Surface *surface) | |
Image (const uint8_t *data, unsigned int width, unsigned int height) | |
void | render (const Rect &rect, unsigned char alpha=255) |
SDL_Surface * | detachSurface () |
![]() | |
const ResourceLocation & | getResourceLocation () |
virtual void | setResourceLocation (const ResourceLocation &location) |
int | getPoolId () |
![]() | |
fifeid_t | getFifeId () |
virtual void | addRef () |
virtual void | decRef () |
virtual unsigned int | getRefCount () |
![]() | |
virtual void | addRef ()=0 |
virtual void | decRef ()=0 |
virtual unsigned int | getRefCount ()=0 |
![]() | |
virtual SDL_Surface * | getSurface ()=0 |
virtual unsigned int | getWidth () const =0 |
virtual unsigned int | getHeight () const =0 |
virtual const Rect & | getArea ()=0 |
virtual bool | putPixel (int x, int y, int r, int g, int b, int a=255)=0 |
virtual void | drawLine (const Point &p1, const Point &p2, int r, int g, int b, int a=255)=0 |
virtual void | drawTriangle (const Point &p1, const Point &p2, const Point &p3, int r, int g, int b, int a=255)=0 |
virtual void | drawRectangle (const Point &p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0 |
virtual void | fillRectangle (const Point &p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)=0 |
virtual void | drawQuad (const Point &p1, const Point &p2, const Point &p3, const Point &p4, int r, int g, int b, int a=255)=0 |
virtual void | drawVertex (const Point &p, const uint8_t size, int r, int g, int b, int a=255)=0 |
virtual void | drawLightPrimitive (const Point &p, uint8_t intensity, float radius, int subdivisions, float xstretch, float ystretch, uint8_t red, uint8_t green, uint8_t blue)=0 |
virtual void | getPixelRGBA (int x, int y, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *a)=0 |
virtual void | pushClipArea (const Rect &cliparea, bool clear=true)=0 |
virtual void | popClipArea ()=0 |
virtual const Rect & | getClipArea () const =0 |
virtual void | saveImage (const std::string &filename)=0 |
virtual void | setAlphaOptimizerEnabled (bool enabled)=0 |
virtual bool | isAlphaOptimizerEnabled ()=0 |
Protected Member Functions | |
void | setClipArea (const Rect &cliparea, bool clear) |
![]() | |
virtual void | clearClipArea () |
The SDL implementation of the Image
base class.
Definition at line 40 of file sdlimage.h.
|
inlinevirtual |
Invalidates the Image causing it to be reset or re-loaded
Implements FIFE::Image.
Definition at line 45 of file sdlimage.h.
|
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. |
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.
|
protectedvirtual |
Sets given clip area into image
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.