restructure v2

This commit is contained in:
Claire Schwarzer 2026-07-08 14:24:34 +02:00
parent e01595e155
commit dc5654ba9a
20 changed files with 910 additions and 791 deletions

View file

@ -0,0 +1,4 @@
import bpy
import sys
bpy.ops.export_scene.fbx(filepath=sys.argv[-1], path_mode='COPY', embed_textures=True)

View file

@ -0,0 +1,24 @@
#include "modelLoader.h"
#include <iostream>
namespace engine::Assets
{
Model loadBlendModel(const char *path)
{
return Model(path);
}
Model loadModel(const char *path)
{
int length = strlen(path);
const char *blendEnd = &path[length - 6];
std::cout << blendEnd << std::endl;
if (std::strcmp(blendEnd, ".blend")) {
return loadBlendModel(path);
}
return Model(path);
}
}

View file

@ -0,0 +1,9 @@
#pragma once
#include "engine/Backend/Model.h"
namespace engine::Assets
{
Model loadBlendModel(const char *path);
Model loadModel(const char *path);
}