aboutsummaryrefslogtreecommitdiffstats
path: root/include/gltf.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-07-09 23:45:26 +0200
committerladevieq <ladevie.quentin@gmail.com>2022-07-10 00:04:17 +0200
commitcfcb5c3212f0fce667885ff0de6fa0b9fc4b3ca8 (patch)
treed076b243e0203537d5816c9a15010723581d7f97 /include/gltf.hpp
parent928b1b0503d2ecab09cc275e9775593a41e417cb (diff)
Improve compilation time
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);