24 #ifndef _SEFRAMEWORK_IMAGE_TILEMANAGER_H_
25 #define _SEFRAMEWORK_IMAGE_TILEMANAGER_H_
32 #include <unordered_map>
94 void setOptions(
int tile_width,
int tile_height,
int max_memory) {
120 TileKey key {std::static_pointer_cast<const ImageSource>(source),
x,
y};
126 return std::dynamic_pointer_cast<ImageTile>(it->second);
128 auto tile = source->getImageTile(
x,
y,
130 addTile(key, std::static_pointer_cast<ImageTile>(tile));
168 tile->saveIfModified();