Implementing ktx texture loading

This commit is contained in:
Dynamitos
2021-08-22 23:07:38 +02:00
parent c5686377be
commit df977110d3
16 changed files with 79 additions and 38 deletions
+1 -2
View File
@@ -18,10 +18,9 @@ public:
void importAsset(const std::filesystem::path& filePath);
PTextureAsset getPlaceholderTexture();
private:
Gfx::PTexture2D import(const std::filesystem::path& path);
void import(const std::filesystem::path& path, PTextureAsset asset);
Gfx::PGraphics graphics;
List<std::future<void>> futures;
Gfx::PTexture2D placeholderTexture;
PTextureAsset placeholderAsset;
};
DEFINE_REF(TextureLoader)