Initial fastgltf integration

This commit is contained in:
Erris
2026-03-08 11:38:46 +01:00
parent 48d2905695
commit ac18bb6f00
7 changed files with 137 additions and 22 deletions

View File

@@ -0,0 +1,13 @@
#ifndef FASTGLTF_HPP
#define FASTGLTF_HPP
#include "renderer/renderer3d.hpp"
#include "open_engine/ref_scope.hpp"
namespace OpenEngine {
Ref<Mesh> TestGLTF();
}
#endif // FASTGLTF_HPP

View File

@@ -48,7 +48,8 @@ namespace OpenEngine {
};
Ref<Mesh> CreateMesh(const std::vector<MeshVertex>& vertices,
const std::vector<uint32_t>& indices);
const std::vector<uint32_t>& indices,
uint32_t id);
Ref<Mesh> CreateCube(uint32_t id = -1);
Ref<Mesh> CreateQuad(uint32_t id = -1, bool back_face = false);
// ==================================================