FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <atlasloader.h>
Public Member Functions | |
Atlas (const std::string &name) | |
~Atlas () | |
size_t | getImageCount () const |
Returns the number of subimages that belongs to this atlas. More... | |
ImagePtr & | getPackedImage () |
Returns an (packed) Image for this atlas. More... | |
ImagePtr | getImage (const std::string &id) |
Return an Image of given id. More... | |
ImagePtr | getImage (uint32_t index) |
Return an Image of given (serial) index in atlas. More... | |
bool | addImage (const std::string &imagename, const AtlasData &data) |
Adds new information about subimage that belongs to this atlas. More... | |
void | setPackedImage (const ImagePtr &image) |
Sets the image for atlas to use it for rendering. More... | |
const std::string & | getName () const |
Protected Types | |
typedef std::map< std::string, AtlasData > | SubimageMap |
Protected Attributes | |
SubimageMap | m_subimages |
ImagePtr | m_image |
std::string | m_name |
Definition at line 51 of file atlasloader.h.
|
protected |
Definition at line 87 of file atlasloader.h.
|
inline |
Definition at line 53 of file atlasloader.h.
|
inline |
Definition at line 55 of file atlasloader.h.
References FIFE::AtlasData::image.
bool FIFE::Atlas::addImage | ( | const std::string & | imagename, |
const AtlasData & | data | ||
) |
Adds new information about subimage that belongs to this atlas.
Definition at line 76 of file atlasloader.cpp.
References m_subimages.
ImagePtr FIFE::Atlas::getImage | ( | const std::string & | id | ) |
ImagePtr FIFE::Atlas::getImage | ( | uint32_t | index | ) |
Return an Image of given (serial) index in atlas.
Definition at line 67 of file atlasloader.cpp.
References getImageCount(), and m_subimages.
size_t FIFE::Atlas::getImageCount | ( | ) | const |
Returns the number of subimages that belongs to this atlas.
Definition at line 52 of file atlasloader.cpp.
References m_subimages.
Referenced by getImage().
const std::string & FIFE::Atlas::getName | ( | ) | const |
Definition at line 84 of file atlasloader.cpp.
References m_name.
ImagePtr & FIFE::Atlas::getPackedImage | ( | ) |
Returns an (packed) Image for this atlas.
Definition at line 56 of file atlasloader.cpp.
References m_image.
void FIFE::Atlas::setPackedImage | ( | const ImagePtr & | image | ) |
Sets the image for atlas to use it for rendering.
Definition at line 80 of file atlasloader.cpp.
References m_image.
|
protected |
Definition at line 89 of file atlasloader.h.
Referenced by getPackedImage(), and setPackedImage().
|
protected |
Definition at line 92 of file atlasloader.h.
Referenced by getName().
|
protected |
Definition at line 88 of file atlasloader.h.
Referenced by addImage(), getImage(), and getImageCount().