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);
68 SDL_Surface*
optimize(SDL_Surface* surface);
The SDL implementation of the Image base class.
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...
SDL_Surface * m_zoom_surface
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.
SDL_Surface * optimize(SDL_Surface *surface)
SDL Alpha Optimizer This tries to convert an image with a fake alpha channel to an RGB image when the...