8#include "hellfire/assets/AssetManager.h"
9#include "hellfire/assets/AssetRegistry.h"
17
18
45 const std::string& extension)
const;
std::filesystem::path get_imported_path(const AssetMetadata &meta, const std::string &extension) const
std::filesystem::path get_import_output_dir() const
void import_all_pending()
Import all unprocessed assets in registry.
bool import_model(const AssetMetadata &meta)
bool needs_import(AssetID id) const
AssetImportManager(AssetRegistry ®istry, AssetManager &asset_manager, const std::filesystem::path &project_root)
bool import_asset(AssetID id)
void import_all_textures()
std::filesystem::path project_root_
bool has_imported_mesh(AssetID original_id) const
AssetManager & asset_manager_
bool import_model_threaded(const AssetMetadata &meta, std::mutex ®istry_mutex)
bool import_texture(const AssetMetadata &meta)
std::filesystem::path import_output_dir_
AssetRegistry & registry_
std::shared_ptr< Mesh > get_mesh(AssetID id)
Registry for storing assets.
std::filesystem::path get_absolute_path(AssetID uuid)
Converts external model formats (FBX, GLTF, OBJ) into internal assets this runs once during asset imp...
ImportResult import(const std::filesystem::path &source_path, const ImportSettings &settings={})
Serializes the ImportResult to a .hfmodel file.
static bool save(const std::filesystem::path &filepath, const ImportResult &result)
static bool save_metadata(const std::filesystem::path &texture_path, const TextureMetadata &meta)
TextureType infer_texture_type(const std::string &name)
Complete result of importing a model file.
std::string error_message
Metadata for texture assets.