From 9ed211d1ca084b25d1780da3bde19e9da64d4a4a Mon Sep 17 00:00:00 2001 From: Chuyan Zhang Date: Sat, 5 Oct 2024 23:40:53 -0700 Subject: glTF loader start working --- src/gltf_loader.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/gltf_loader.h') diff --git a/src/gltf_loader.h b/src/gltf_loader.h index c239bb2..4b3190b 100644 --- a/src/gltf_loader.h +++ b/src/gltf_loader.h @@ -1,11 +1,9 @@ -#pragma once +#ifndef GLTF_LOADER_H +#define GLTF_LOADER_H #include #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 +bool load_gltf(const std::string_view path, iris::Scene &scene); +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2