Converts external model formats (FBX, GLTF, OBJ) into internal assets this runs once during asset import, NOT at runtime!
More...
#include <ModelImporter.h>
Converts external model formats (FBX, GLTF, OBJ) into internal assets this runs once during asset import, NOT at runtime!
Definition at line 28 of file ModelImporter.h.
◆ ModelImporter()
| hellfire::ModelImporter::ModelImporter |
( |
AssetRegistry & |
registry, |
|
|
const std::filesystem::path & |
output_dir |
|
) |
| |
◆ build_import_flags()
| unsigned int hellfire::ModelImporter::build_import_flags |
( |
const ImportSettings & |
settings | ) |
const |
|
private |
◆ convert_matrix()
| glm::mat4 hellfire::ModelImporter::convert_matrix |
( |
const aiMatrix4x4 & |
m | ) |
|
|
staticprivate |
◆ convert_node()
| ImportedNode hellfire::ModelImporter::convert_node |
( |
const aiNode * |
node | ) |
const |
|
private |
◆ extract_embedded_texture()
| std::filesystem::path hellfire::ModelImporter::extract_embedded_texture |
( |
size_t |
index | ) |
|
|
private |
◆ import()
◆ is_embedded_texture()
| bool hellfire::ModelImporter::is_embedded_texture |
( |
const std::string & |
path | ) |
const |
|
private |
◆ is_identity()
| bool hellfire::ModelImporter::is_identity |
( |
const aiMatrix4x4 & |
m | ) |
|
|
staticprivate |
◆ make_unique_name()
| std::string hellfire::ModelImporter::make_unique_name |
( |
const std::string & |
base, |
|
|
const std::string & |
suffix, |
|
|
size_t |
index |
|
) |
| const |
|
private |
◆ process_material()
| AssetID hellfire::ModelImporter::process_material |
( |
const aiMaterial * |
ai_mat, |
|
|
size_t |
material_index |
|
) |
| |
|
private |
◆ process_mesh()
| AssetID hellfire::ModelImporter::process_mesh |
( |
const aiMesh * |
mesh, |
|
|
size_t |
mesh_index |
|
) |
| |
|
private |
◆ process_node_hierarchy()
| void hellfire::ModelImporter::process_node_hierarchy |
( |
const aiNode * |
node, |
|
|
ImportResult & |
result, |
|
|
size_t |
parent_index = SIZE_MAX |
|
) |
| |
|
private |
◆ process_texture()
| AssetID hellfire::ModelImporter::process_texture |
( |
const std::string & |
texture_path, |
|
|
TextureType |
type |
|
) |
| |
|
private |
◆ resolve_texture_path()
| std::optional< std::filesystem::path > hellfire::ModelImporter::resolve_texture_path |
( |
const std::string & |
texture_ref | ) |
const |
|
private |
◆ ai_scene_
| const aiScene* hellfire::ModelImporter::ai_scene_ = nullptr |
|
private |
◆ base_name_
| std::string hellfire::ModelImporter::base_name_ |
|
private |
◆ output_dir_
| std::filesystem::path hellfire::ModelImporter::output_dir_ |
|
private |
◆ registry_
◆ source_dir_
| std::filesystem::path hellfire::ModelImporter::source_dir_ |
|
private |
◆ source_path_
| std::filesystem::path hellfire::ModelImporter::source_path_ |
|
private |
The documentation for this class was generated from the following files: