diff --git a/CMakeLists.txt b/CMakeLists.txt index e637eaae..7487cbfe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,10 +118,10 @@ endif() FetchContent_Declare(boostpfr URL https://github.com/boostorg/pfr/archive/refs/tags/2.0.3.tar.gz) # Client dependencies +FetchContent_Declare(fastgltf URL https://github.com/spnda/fastgltf/archive/refs/tags/v0.6.0.tar.gz) FetchContent_Declare(glm URL https://github.com/g-truc/glm/archive/refs/tags/0.9.9.8.tar.gz) FetchContent_Declare(openxr_loader URL https://github.com/KhronosGroup/OpenXR-SDK/archive/refs/tags/release-1.0.32.tar.gz) FetchContent_Declare(spdlog URL https://github.com/gabime/spdlog/archive/refs/tags/v1.11.0.tar.gz) -FetchContent_Declare(tinygltf URL https://github.com/syoyo/tinygltf/archive/refs/tags/v2.6.3.tar.gz) # Server dependencies FetchContent_Declare(monado diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index e8b00d9c..0c5a66fc 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -1,11 +1,4 @@ -set(TINYGLTF_BUILD_LOADER_EXAMPLE OFF) -set(TINYGLTF_BUILD_GL_EXAMPLES OFF) -set(TINYGLTF_BUILD_VALIDATOR_EXAMPLE OFF) -set(TINYGLTF_BUILD_BUILDER_EXAMPLE OFF) -set(TINYGLTF_HEADER_ONLY OFF) -set(TINYGLTF_INSTALL OFF) - -FetchContent_MakeAvailable(spdlog glm tinygltf imgui) +FetchContent_MakeAvailable(spdlog glm fastgltf imgui) include(FreetypeHarfbuzz) include(CompileGLSL) @@ -117,7 +110,7 @@ file(GLOB_RECURSE VULKAN_SHADERS CONFIGURE_DEPENDS "*.glsl") target_sources(wivrn PRIVATE ${LOCAL_SOURCE} ${VULKAN_SHADERS}) wivrn_compile_glsl(wivrn ${VULKAN_SHADERS}) -target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm tinygltf FreetypeHarfbuzz imgui) +target_link_libraries(wivrn Vulkan::Vulkan spdlog::spdlog glm::glm fastgltf FreetypeHarfbuzz imgui) target_compile_definitions(wivrn PRIVATE -DXR_USE_GRAPHICS_API_VULKAN) target_compile_definitions(wivrn PRIVATE -DVMA_STATS_STRING_ENABLED=0) target_compile_options(wivrn PRIVATE -fdiagnostics-color -Wall -Wextra -pedantic) # -Werror diff --git a/client/scenes/lobby.cpp b/client/scenes/lobby.cpp index 2ac80bb8..4ca6cdf7 100644 --- a/client/scenes/lobby.cpp +++ b/client/scenes/lobby.cpp @@ -30,7 +30,6 @@ #include #include #include -#include #include #include #include diff --git a/client/scenes/lobby.h b/client/scenes/lobby.h index 7e6c3f9e..dcce3f36 100644 --- a/client/scenes/lobby.h +++ b/client/scenes/lobby.h @@ -22,7 +22,6 @@ #include "scene.h" #include #include "wivrn_discover.h" -#include #include @@ -62,7 +61,6 @@ class lobby : public scene std::optional discover; - tinygltf::Model model; std::vector model_memory; std::vector model_buffers; std::vector model_images;