fork download
  1. #ifndef OBJECTMANAGER_H
  2. #define OBJECTMANAGER_H
  3.  
  4. #include "SFML/Graphics.hpp"
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  8.  
  9. #include "GameObject.h"
  10.  
  11. class ObjectManager
  12. {
  13. private:
  14. static ObjectManager* instance;
  15. void InitialiseInstence();
  16.  
  17. ObjectManager() {}
  18. ObjectManager(const ObjectManager&){}
  19. ~ObjectManager();
  20.  
  21. sf::Clock * timer;
  22. std::map<std::string, GameObject*> * gameObjects;
  23.  
  24. public:
  25. static ObjectManager& getInstance();
  26. static void destroy();
  27. };
  28.  
  29. #endif //OBJECTMANAGER_H
  30.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:4:29: fatal error: SFML/Graphics.hpp: No such file or directory
compilation terminated.
stdout
Standard output is empty