36 const int margin,
const int spacing) :
46 const int hAdd = height + spacing;
47 const int wAdd = width + spacing;
48 for (
int y = margin;
y + height <= img->getHeight() - margin;
51 for (
int x = margin;
x + width <= img->getWidth() - margin;
54 Image *
const image = img->getSubImage(
x,
y, width, height);
55 image->mNotCount =
true;
71 logger->
log(
"Warning: No sprite %d in this image set",
80 return static_cast<int>(
sizeof(
ImageSet)) +
std::vector< Image * > mImages
Image * get(const size_type i) const
ImageSet(Image *const img, const int w, const int h, const int margin, const int spacing)
std::vector< Image * >::size_type size_type
int calcMemoryLocal() const
void log(const char *const log_text,...)
int calcMemoryLocal() const
void delete_all(Container &c)