Simple SFML GUI  0.2a
TextureManager.hpp
1 #ifndef TEXTUREMANAGER_HPP
2 #define TEXTUREMANAGER_HPP
3 
4 #include <SFML/Graphics.hpp>
5 #include <SFML/System/String.hpp>
6 #include <map>
7 #include <memory>
8 
10 public:
11  static std::shared_ptr<sf::Texture> get(const sf::String& name);
12  static void set(const sf::String& name, const std::shared_ptr<sf::Texture>& texture);
13  static bool load(const sf::String& name, const sf::String& path, bool smooth = false);
14 
15 private:
17 
18  static std::map<sf::String, std::shared_ptr<sf::Texture>> textureMap;
19 
20 };
21 
22 #endif // TEXTUREMANAGER_HPP
Definition: TextureManager.hpp:9