22 #ifndef FIFE_ATLAS_LOADER_H
23 #define FIFE_ATLAS_LOADER_H
84 const std::string&
getName()
const;
103 virtual bool isLoadable(
const std::string& filename);
ImagePtr & getPackedImage()
Returns an (packed) Image for this atlas.
std::map< std::string, AtlasData > SubimageMap
virtual bool isLoadable(const std::string &filename)
AtlasLoader(Model *model, VFS *vfs, ImageManager *imageManager)
AtlasLoader * createDefaultAtlasLoader(Model *model, VFS *vfs, ImageManager *imageManager)
convenience function for creating the default fife atlas loader deleting the object returned from thi...
ImageManager * m_imageManager
void parseObject(Atlas *atlas, TiXmlElement *root, bool exists)
virtual AtlasPtr load(const std::string &filename)
void setPackedImage(const ImagePtr &image)
Sets the image for atlas to use it for rendering.
A model is a facade for everything in the model.
const std::string & getName() const
the main VFS (virtual file system) class
std::string m_atlasFilename
Atlas(const std::string &name)
ImagePtr getImage(const std::string &id)
Return an Image of given id.
size_t getImageCount() const
Returns the number of subimages that belongs to this atlas.
bool addImage(const std::string &imagename, const AtlasData &data)
Adds new information about subimage that belongs to this atlas.