texture fix
This commit is contained in:
parent
057e7b94d7
commit
00a5704653
2 changed files with 11 additions and 1 deletions
|
|
@ -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>>) {
|
||||
|
|
|
|||
11
project.json
11
project.json
|
|
@ -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
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue