texture fix

This commit is contained in:
Jorijn van der Graaf 2026-02-24 04:28:16 +01:00
commit 00a5704653
2 changed files with 11 additions and 1 deletions

View file

@ -55,6 +55,7 @@ export namespace Crafter {
tex.pixels.resize(tex.sizeX * tex.sizeY * tex.sizeZ);
file.read(reinterpret_cast<char*>(tex.pixels.data()), tex.sizeX * tex.sizeY * tex.sizeZ * sizeof(T));
return tex;
}
static TextureAsset<T> LoadPNG(fs::path path) requires (std::same_as<T, Vector<std::uint8_t, 4, 0>>) {

View file

@ -3,7 +3,7 @@
"configurations": [
{
"name": "base",
"implementations": ["implementations/main"],
"implementations": [],
"interfaces": ["interfaces/Crafter.Asset", "interfaces/Crafter.Asset-Texture", "interfaces/Crafter.Asset-Mesh"]
},
{
@ -31,12 +31,21 @@
{
"name": "executable",
"extends": ["deps"],
"implementations": ["implementations/main"],
"type": "executable"
},
{
"name": "executable-windows",
"extends": ["deps"],
"implementations": ["implementations/main"],
"type": "executable",
"target": ""
},
{
"name": "executable-debug",
"extends": ["deps-debug"],
"type": "executable",
"implementations": ["implementations/main"],
"debug": true
},
{