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_skeleton_paths;
20 std::vector<VirtualPath> generated_animation_clip_paths;
21 std::vector<VirtualPath> generated_material_paths;
22 std::vector<VirtualPath> generated_texture_paths;
23
24 [[nodiscard]] explicit operator bool() const noexcept
25 {
26 return success;
27 }
28};
29
30[[nodiscard]] GltfPrefabImportResult ImportGltfPrefab(const Filesystem& filesystem, const VirtualPath& source_path);
31} // namespace pixelbullet
Definition filesystem.h:19
Definition virtual_path.h:10
Definition gltf_prefab_import.h:13