#include <imgcache.h>
Public Member Functions | |
Image & | loadImage (std::vector< SDL_Rect > image_desc, string imagename, double scale_factor=1) |
Image & | loadImage (string imagename, double scale_factor=1, string image_desc_file="") |
Image & | loadImage (Uint16 num_frames, string imagename, double scale_factor=1) |
Image & | loadImage (Uint16 width, Uint16 shift, string imagename, double scale_factor=1) |
Image & | loadImage (SDL_Rect base_rect, string imagename, double scale_factor=1) |
Caches images supported by SDL_image according to their name (using a map container) and deletes them at the end.
|
Loads an image if it isn't already contained in the pool according to it's image name. If the image is not found it tries to load a fallback image (not_found). |