|
FIFE
|
#include <atlasloader.h>
Collaboration diagram for FIFE::Atlas: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 50 of file atlasloader.h.
|
protected |
Definition at line 86 of file atlasloader.h.
|
inline |
Definition at line 52 of file atlasloader.h.
|
inline |
Definition at line 54 of file atlasloader.h.
| bool FIFE::Atlas::addImage | ( | const std::string & | imagename, |
| const AtlasData & | data | ||
| ) |
Adds new information about subimage that belongs to this atlas.
Definition at line 75 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 66 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 51 of file atlasloader.cpp.
References m_subimages.
Referenced by getImage().
Here is the caller graph for this function:| const std::string & FIFE::Atlas::getName | ( | ) | const |
Definition at line 83 of file atlasloader.cpp.
References m_name.
| ImagePtr & FIFE::Atlas::getPackedImage | ( | ) |
Returns an (packed) Image for this atlas.
Definition at line 55 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 79 of file atlasloader.cpp.
References m_image.
|
protected |
Definition at line 88 of file atlasloader.h.
Referenced by getPackedImage(), and setPackedImage().
|
protected |
Definition at line 91 of file atlasloader.h.
Referenced by getName().
|
protected |
Definition at line 87 of file atlasloader.h.
Referenced by addImage(), getImage(), and getImageCount().