diff options
author | Chuyan Zhang <chuyan@ucsb.edu> | 2024-10-03 19:49:47 -0700 |
---|---|---|
committer | Chuyan Zhang <chuyan@ucsb.edu> | 2024-10-03 19:49:47 -0700 |
commit | e59529d3f55b9128f798a7f02a7288f96bdaf9a4 (patch) | |
tree | abdbb571e1dfa46ea85921135434bdfc6a6d11b9 /src/gltf_loader.h | |
parent | 4bb8fd5ac5c07e8756ae097e7f5d7f34697bc914 (diff) | |
download | iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.tar.gz iris-e59529d3f55b9128f798a7f02a7288f96bdaf9a4.zip |
use xmake build & scene load wip
Diffstat (limited to 'src/gltf_loader.h')
-rw-r--r-- | src/gltf_loader.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gltf_loader.h b/src/gltf_loader.h new file mode 100644 index 0000000..c239bb2 --- /dev/null +++ b/src/gltf_loader.h @@ -0,0 +1,11 @@ +#pragma once + +#include <string_view> +#include "render_assets.h" + +#define TINYGLTF_IMPLEMENTATION +#define STB_IMAGE_IMPLEMENTATION +#define STB_IMAGE_WRITE_IMPLEMENTATION +#include "tiny_gltf.h" + +bool load_gltf(const std::string_view path, iris::Scene &scene);
\ No newline at end of file |