Toast Engine
Toggle main menu visibility
Loading...
Searching...
No Matches
vox_intermediates.hpp
Go to the documentation of this file.
1
6
7
#pragma once
8
#include "
vox_import.hpp
"
9
10
#include <cstdint>
11
#include <filesystem>
12
#include <string>
13
#include <
toast/export.hpp
>
14
#include <vector>
15
16
namespace
assets {
17
18
struct
VoxIntermediateModel
{
19
std::string file_name;
20
21
uint32_t model = 0;
22
23
uint32_t solid_voxels = 0;
24
};
25
26
struct
VoxIntermediates
{
27
std::string base_name;
28
29
std::vector<VoxIntermediateModel> models;
30
31
std::string palette_file_name;
32
33
std::string manifest_file_name;
34
35
std::vector<std::string> warnings;
36
};
37
39
[[nodiscard]]
40
TOAST_API
auto
41
writeVoxIntermediates(
const
std::filesystem::path& source,
const
std::filesystem::path& out_dir, uint64_t palette_uid)
42
->
VoxIntermediates
;
43
45
TOAST_API
void
voxManifestToPrefab(
const
std::filesystem::path& manifest_path,
const
std::filesystem::path& out_path);
46
47
}
export.hpp
assets::VoxIntermediateModel
Definition
vox_intermediates.hpp:18
assets::VoxIntermediates
Definition
vox_intermediates.hpp:26
vox_import.hpp
engine
src
toast
voxel
assets
vox_intermediates.hpp
Generated by
1.17.0