Initial fastgltf integration
This commit is contained in:
13
open_engine/include/open_engine/fastgltf.hpp
Normal file
13
open_engine/include/open_engine/fastgltf.hpp
Normal 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
|
||||
@@ -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);
|
||||
// ==================================================
|
||||
|
||||
Reference in New Issue
Block a user