aboutsummaryrefslogtreecommitdiffstats
path: root/include/gltf.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/gltf.hpp')
-rw-r--r--include/gltf.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/gltf.hpp b/include/gltf.hpp
index 0364ca8..66fb6ec 100644
--- a/include/gltf.hpp
+++ b/include/gltf.hpp
@@ -1,7 +1,6 @@
#ifndef __GLTF_HPP_
#define __GLTF_HPP_
-#include <filesystem>
#include <vector>
#include <optional>
@@ -11,8 +10,6 @@ using json = nlohmann::json;
#include "material.hpp"
-#include "vk-renderer.hpp"
-
struct mesh_part {
std::vector<uint16_t> indices;
std::vector<float> positions;
@@ -34,6 +31,11 @@ struct node {
std::optional<mesh> mesh;
};
+namespace std::filesystem {
+ class path;
+}
+
+class vkrenderer;
class gltf {
public:
static node load(std::filesystem::path &path, std::string &filename, vkrenderer &renderer);