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) {
114 template <
typename T>
121 TileKey key {std::static_pointer_cast<const ImageSourceBase>(source),
x,
y};
127 return std::dynamic_pointer_cast<ImageTile<T>>(it->second);
129 auto tile = source->getImageTile(
x,
y,
131 addTile(key, std::static_pointer_cast<ImageTileBase>(tile));
169 tile->saveIfModified();