PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
gltf_prefab_import.h
1#pragma once
2
3#include "pixelbullet/filesystem/virtual_path.h"
4
5#include <string>
6#include <vector>
7
8namespace pixelbullet
9{
10class Filesystem;
11
13{
14 bool success = false;
15 std::string error_message;
16 std::vector<std::string> warning_messages;
17 VirtualPath prefab_path;
18 std::vector<VirtualPath> generated_mesh_paths;
19 std::vector<VirtualPath> generated_material_paths;
20 std::vector<VirtualPath> generated_texture_paths;
21
22 [[nodiscard]] explicit operator bool() const noexcept
23 {
24 return success;
25 }
26};
27
28[[nodiscard]] GltfPrefabImportResult ImportGltfPrefab(const Filesystem& filesystem, const VirtualPath& source_path);
29} // namespace pixelbullet
Definition filesystem.h:16
Definition virtual_path.h:10
Definition gltf_prefab_import.h:13