mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
34 lines
676 B
C
34 lines
676 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
#include "common/custom_data/Tfrag3Data.h"
|
||
|
#include "goalc/build_level/TexturePool.h"
|
||
|
#include "goalc/build_level/collide_common.h"
|
||
|
|
||
|
namespace gltf_mesh_extract {
|
||
|
|
||
|
struct Input {
|
||
|
std::string filename;
|
||
|
TexturePool* tex_pool = nullptr;
|
||
|
bool get_colors = true;
|
||
|
};
|
||
|
|
||
|
struct TfragOutput {
|
||
|
std::vector<tfrag3::StripDraw> strip_draws;
|
||
|
std::vector<tfrag3::PreloadedVertex> vertices;
|
||
|
std::vector<math::Vector<u8, 4>> color_palette;
|
||
|
};
|
||
|
|
||
|
struct CollideOutput {
|
||
|
std::vector<CollideFace> faces;
|
||
|
};
|
||
|
|
||
|
struct Output {
|
||
|
TfragOutput tfrag;
|
||
|
CollideOutput collide;
|
||
|
};
|
||
|
|
||
|
void extract(const Input& in, Output& out);
|
||
|
|
||
|
} // namespace gltf_mesh_extract
|