2022-08-05 12:25:35 -04:00
|
|
|
#pragma once
|
|
|
|
|
2023-10-14 16:49:23 -04:00
|
|
|
#include <map>
|
|
|
|
|
2022-08-05 12:25:35 -04:00
|
|
|
#include "common/custom_data/Tfrag3Data.h"
|
|
|
|
#include "common/util/FileUtil.h"
|
|
|
|
|
2023-10-14 16:49:23 -04:00
|
|
|
#include "decompiler/level_extractor/common_formats.h"
|
|
|
|
|
2022-08-05 12:25:35 -04:00
|
|
|
/*!
|
|
|
|
* Export the background geometry (tie, tfrag, shrub) to a GLTF binary format (.glb) file.
|
|
|
|
*/
|
|
|
|
void save_level_background_as_gltf(const tfrag3::Level& level, const fs::path& glb_file);
|
2023-10-14 16:49:23 -04:00
|
|
|
void save_level_foreground_as_gltf(const tfrag3::Level& level,
|
|
|
|
const std::map<std::string, level_tools::ArtData>& art_data,
|
|
|
|
const fs::path& glb_file);
|