forked from Dynamitos/Seele
Adding benchmark
This commit is contained in:
1 parent
8418cdbd11
commit
fd8dc5ed0f
47 files changed
+1071
-1010
No files matched your search
@@ -12,14 +12,14 @@ class TextureAsset : public Asset {
|
||||
virtual ~TextureAsset();
|
||||
virtual void save(ArchiveBuffer& buffer) const override;
|
||||
virtual void load(ArchiveBuffer& buffer) override;
|
||||
void setTexture(Gfx::OTexture _texture);
|
||||
Gfx::PTexture getTexture() { return texture; }
|
||||
void setTexture(Array<uint8> data) { ktxData = std::move(data); }
|
||||
uint32 getWidth();
|
||||
uint32 getHeight();
|
||||
|
||||
private:
|
||||
Gfx::OTexture texture;
|
||||
bool normalMap;
|
||||
Array<uint8> ktxData;
|
||||
friend class TextureLoader;
|
||||
};
|
||||
DEFINE_REF(TextureAsset)
|
||||
|
||||
Reference in new issue
Block a user