Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "AssetManager.h"
- #include "World.h"
- #include <iostream>
- #include <string>
- using namespace std;
- std::map<string,Texture> AssetManager::textures;
- sf::Texture AssetManager::manageTexture(string path)
- {
- if (textures.find(path) != textures.end())
- {
- return textures[path];
- }
- textures[path].loadFromFile(path);
- return textures[path];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement