#pragma once #include #include #include "gdkmm/texture.h" #include "glibmm/refptr.h" class TextureCacheService { public: static TextureCacheService *getInstance(); Glib::RefPtr getTexture(const std::string &url); void pruneCache(); private: TextureCacheService() = default; std::unordered_map> cache; };