Add progress callback when loading gltf
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <entt/core/fwd.hpp>
|
||||
#include <filesystem>
|
||||
#include <functional>
|
||||
#include <vulkan/vulkan_raii.hpp>
|
||||
|
||||
#include "scene_components.h"
|
||||
@@ -43,6 +44,6 @@ public:
|
||||
{}
|
||||
scene_loader(const scene_loader &) = default;
|
||||
|
||||
std::shared_ptr<entt::registry> operator()(const std::filesystem::path & gltf_path);
|
||||
std::shared_ptr<entt::registry> operator()(std::span<const std::byte> data, const std::string & name = "", const std::filesystem::path & parent_path = "");
|
||||
std::shared_ptr<entt::registry> operator()(const std::filesystem::path & gltf_path, std::function<void(float)> progress_cb = {});
|
||||
std::shared_ptr<entt::registry> operator()(std::span<const std::byte> data, const std::string & name = "", const std::filesystem::path & parent_path = "", std::function<void(float)> progress_cb = {});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user