aboutsummaryrefslogtreecommitdiffstats
path: root/src/gltf.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-07-11 00:50:27 +0200
committerladevieq <ladevie.quentin@gmail.com>2022-07-11 00:50:27 +0200
commit23e6a58d59b7a11cb8bdb7aa61d3c534c02027e7 (patch)
treeaa62fe9d75f4b82a0caee70d3bf14fa1e0b617b2 /src/gltf.cpp
parentd676e9a2fb533494d1558483e8266605b1d5b632 (diff)
Refactor includes & improve compile time
Add platform defined to CMakeLists.txt
Diffstat (limited to 'src/gltf.cpp')
-rw-r--r--src/gltf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gltf.cpp b/src/gltf.cpp
index 282b4a4..a044842 100644
--- a/src/gltf.cpp
+++ b/src/gltf.cpp
@@ -2,6 +2,7 @@
#include <fstream>
#include <cstring>
+#include <filesystem>
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
@@ -10,7 +11,7 @@
#include "utils.hpp"
node gltf::load(std::filesystem::path &path, std::string &filename, vkrenderer &renderer) {
- std::fstream f{path / filename};
+ std::fstream f { path / filename };
json gltf_json;
f >> gltf_json;