22 #ifndef FIFE_VIDEO_RENDERBACKENDS_SDL_SDLIMAGE_H 23 #define FIFE_VIDEO_RENDERBACKENDS_SDL_SDLIMAGE_H 28 #include <SDL_video.h> 45 SDLImage(
const std::string& name, SDL_Surface* surface);
The SDL implementation of the Image base class.
void setTexture(SDL_Texture *texture)
SDL_Texture * getTexture()
virtual void render(const Rect &rect, uint8_t alpha=255, uint8_t const *rgb=0)
Renders itself to the current render target (main screen or attached destination image) at the rectan...
virtual void invalidate()
Invalidates the Image causing it to be reset or re-loaded.
virtual void forceLoadInternal()
Forces to load the image into internal memory of GPU.
virtual void setSurface(SDL_Surface *surface)
This frees the current suface and replaces it with the surface passed in the parameter (which can be ...
SDLImage(IResourceLoader *loader=0)
virtual void useSharedImage(const ImagePtr &shared, const Rect ®ion)
After this call all image data will be taken from the given image and its subregion.