Reworked mesh asset loading

This commit is contained in:
Dynamitos
2024-05-01 14:10:52 +02:00
parent 19922f4624
commit 2c1669aab4
23 changed files with 647 additions and 460 deletions
+2 -5
View File
@@ -1,6 +1,7 @@
#pragma once
#include "Asset.h"
struct ktxTexture2;
namespace Seele
{
DECLARE_NAME_REF(Gfx, Texture)
@@ -18,14 +19,10 @@ public:
{
return texture;
}
const Array<uint8>& getRawPixels()
{
return rawPixels;
}
uint32 getWidth();
uint32 getHeight();
private:
Array<uint8> rawPixels;
struct ktxTexture2* ktxHandle;
Gfx::OTexture texture;
friend class TextureLoader;
};