Redo of render paths

This commit is contained in:
Dynamitos
2020-06-02 11:46:18 +02:00
parent bb5b48698a
commit 356e6058fe
121 changed files with 3890 additions and 572 deletions
+25
View File
@@ -0,0 +1,25 @@
#include "Asset.h"
namespace Seele
{
DECLARE_NAME_REF(Gfx, Texture);
class TextureAsset : public Asset
{
public:
TextureAsset();
TextureAsset(const std::string& directory, const std::string& name);
TextureAsset(const std::string& fullPath);
void setTexture(Gfx::PTexture texture)
{
std::scoped_lock lck(lock);
this->texture = texture;
}
Gfx::PTexture getTexture()
{
return texture;
}
private:
Gfx::PTexture texture;
};
DEFINE_REF(TextureAsset);
} // namespace Seele