#pragma once #include #include #include #include "../UTILS/OnlyOnce.hpp" using namespace std; class ResourceCache { private: ResourceCache (); map images; map shaders; public: static ResourceCache& get() { static ResourceCache instance; return instance; } GLuint getImage(string path); GLuint getShader(string vertPath, string fragPath); };