Loading logic moved to Asset classes

This commit is contained in:
Dynamitos committed 2020-06-08 01:44:47 +02:00
1 parent 356e6058fe
commit ab4a3b5e23
50 files changed
+966 -558

No files matched your search

+4 -1
View File
@@ -8,7 +8,10 @@ class TextureAsset : public Asset
public:
TextureAsset();
TextureAsset(const std::string& directory, const std::string& name);
TextureAsset(const std::string& fullPath);
TextureAsset(const std::filesystem::path& fullPath);
virtual ~TextureAsset();
virtual void save() override;
virtual void load() override;
void setTexture(Gfx::PTexture texture)
{
std::scoped_lock lck(lock);