Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ImageCache Class Reference

Caches images. More...

#include <imgcache.h>

List of all members.

Public Member Functions

ImageloadImage (std::vector< SDL_Rect > image_desc, string imagename, double scale_factor=1)
ImageloadImage (string imagename, double scale_factor=1, string image_desc_file="")
ImageloadImage (Uint16 num_frames, string imagename, double scale_factor=1)
ImageloadImage (Uint16 width, Uint16 shift, string imagename, double scale_factor=1)
ImageloadImage (SDL_Rect base_rect, string imagename, double scale_factor=1)


Detailed Description

Caches images.

Caches images supported by SDL_image according to their name (using a map container) and deletes them at the end.


Member Function Documentation

Image& ImageCache::loadImage std::vector< SDL_Rect >  image_desc,
string  imagename,
double  scale_factor = 1
 

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).


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:37 2006 for Lost Penguins by doxygen 1.3.8