fork download
  1. #ifndef TEXTUREMANAGER_H
  2. #define TEXTUREMANAGER_H
  3.  
  4. #include "SFML/Graphics.hpp"
  5. #include <string>
  6. #include <vector>
  7. #include <memory>
  8.  
  9. class TextureManager
  10. {
  11. private:
  12. static TextureManager* instance;
  13. TextureManager() {}
  14. TextureManager(const TextureManager&) {}
  15. ~TextureManager();
  16.  
  17. void InitialiseInstence();
  18.  
  19. sf::Texture * tSpriteSheet;
  20. //std::auto_ptr<sf::Texture> tSpriteSheet;
  21. sf::Texture * tBackGrounds;
  22.  
  23. std::string fnSpriteSheet;
  24. std::vector<std::string> fnBackGrounds;
  25.  
  26. public:
  27. static TextureManager& getInstance();
  28. static void destroy();
  29. sf::Texture * rSpriteSheet();
  30. sf::Texture * rBackGrounds();
  31. };
  32.  
  33. #endif //TEXTUREMANAGER_H
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty