Add a screen to download gltf models

This commit is contained in:
Guillaume Meunier
2025-10-25 10:30:29 +02:00
parent 33a5bf7494
commit cb1d0d7c2c
28 changed files with 1698 additions and 399 deletions
+9 -1
View File
@@ -20,7 +20,6 @@
#pragma once
#include "render/image_loader.h"
#include "render/imgui_impl.h"
#include "render/scene_loader.h"
#include "render/scene_renderer.h"
#include "utils/cache.h"
@@ -220,6 +219,15 @@ public:
void unload_gltf(const std::filesystem::path & path);
std::pair<entt::entity, components::node &> add_gltf(std::shared_ptr<entt::registry> gltf, uint32_t layer_mask = -1);
std::pair<entt::entity, components::node &> add_gltf(const std::filesystem::path & path, uint32_t layer_mask = -1);
void clear_texture_cache()
{
gltf_cache->loader().clear_texture_cache();
}
void clear_gltf_cache()
{
gltf_cache->clear();
}
void remove(entt::entity entity);
};