Fixing some stuff

This commit is contained in:
Dynamitos committed 2024-07-19 10:42:59 +02:00
1 parent 3b6eb3ebcc
commit 819b541ff2
14 files changed
+225 -238

No files matched your search

+2 -1
View File
@@ -13,12 +13,13 @@ class TextureAsset : public Asset {
virtual void save(ArchiveBuffer& buffer) const override;
virtual void load(ArchiveBuffer& buffer) override;
Gfx::PTexture getTexture() { return texture; }
void setTexture(Array<uint8> data) { }
void setTexture(Array<uint8> data) { ktxData = std::move(data); }
uint32 getWidth();
uint32 getHeight();
private:
Gfx::OTexture texture;
Array<uint8> ktxData;
friend class TextureLoader;
};
DEFINE_REF(TextureAsset)