29 #ifndef NOMLIB_OBJECT_CACHE_HEADERS
30 #define NOMLIB_OBJECT_CACHE_HEADERS
38 #include "nomlib/config.hpp"
49 std::shared_ptr<SDL_Surface> addObject (
const std::string& key,
50 std::shared_ptr<SDL_Surface>
object
56 std::shared_ptr<SDL_Surface> getObject (
const std::string& key );
59 static std::map <std::string, std::shared_ptr<SDL_Surface>> cache;
66 #endif // NOMLIB_OBJECT_CACHE_HEADERS defined
bool removeObject(const std::string &key)