Move through course, sprite and input
Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
22
LightYearsEngine/include/framework/AssetManager.h
Normal file
22
LightYearsEngine/include/framework/AssetManager.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
#include "framework/Core.h"
|
||||
#include <SFML/Graphics.hpp>
|
||||
|
||||
namespace ly {
|
||||
class AssetManager {
|
||||
public:
|
||||
static AssetManager& Get();
|
||||
shared<sf::Texture> LoadTexture(const std::string& path);
|
||||
void CleanCycle();
|
||||
void SetAssetRootDirectory(const std::string& directory);
|
||||
|
||||
protected:
|
||||
AssetManager();
|
||||
|
||||
private:
|
||||
static unique<AssetManager> assetManager;
|
||||
Dictionary<std::string, shared<sf::Texture>> mLoadedTextureMap;
|
||||
std::string mRootDirectory;
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user