osuplusplus/include/TextureManager.hpp

22 lines
400 B
C++
Raw Normal View History

2024-03-18 11:25:15 +01:00
#pragma once
#include <filesystem>
#include <string>
#include <unordered_map>
#include <SFML/Graphics.hpp>
namespace fs = std::filesystem;
class TextureManager {
fs::path skinDirectory;
std::unordered_map<std::string, sf::Texture> textureCache;
public:
TextureManager() = delete;
TextureManager(fs::path skinDirectory);
sf::Texture &getTexture(std::string textureName);
};