00001 #ifndef HEADER_RESIMAGEPACK_H
00002 #define HEADER_RESIMAGEPACK_H
00003
00004 class Path;
00005
00006 #include "ResourcePack.h"
00007
00008 #include "SDL.h"
00009
00010
00011
00012
00013 class ResImagePack : public ResourcePack<SDL_Surface*> {
00014 protected:
00015 virtual void unloadRes(SDL_Surface *res);
00016 public:
00017 virtual const char *getName() const { return "image_pack"; }
00018
00019 static SDL_Surface *loadImage(const Path &file);
00020 void addImage(const std::string &name, const Path &file);
00021 };
00022
00023 #endif
00024