Cache transcoded textures
This commit is contained in:
+2
-3
@@ -216,11 +216,10 @@ public:
|
||||
|
||||
entt::registry world;
|
||||
|
||||
std::shared_ptr<entt::registry> load_gltf(const std::filesystem::path & path);
|
||||
std::shared_ptr<entt::registry> load_gltf(std::span<const std::byte> data);
|
||||
std::shared_ptr<entt::registry> load_gltf(const std::filesystem::path & path, std::function<void(float)> progress_cb = {});
|
||||
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);
|
||||
std::pair<entt::entity, components::node &> add_gltf(std::span<const std::byte> data, uint32_t layer_mask = -1);
|
||||
|
||||
void remove(entt::entity entity);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user