#pragma once #define TINYGLTF_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #define TINYGLTF_NO_EXTERNAL_IMAGE #include "Graphics/Mesh.h" #include #include #include #include void ProcessVertices(aiMesh* mesh, std::vector& out_vertices); void ProcessIndices(aiMesh* mesh, std::vector& out_indices); class ModelImporter { public: std::vector Import(const std::string path); private: static BarinkEngine::Mesh ModelImporter::processMesh(aiMesh* mesh, const aiScene* scene); static std::vector ModelImporter::processNode(aiNode* node, const aiScene* scene); };