Creates scene entities from an ImportResult. More...
#include <ModelInstantiator.h>
Public Member Functions | |
| ModelInstantiator (AssetManager &assets, AssetRegistry ®istry) | |
| EntityID | instantiate (Scene &scene, AssetID model_asset_id, EntityID parent=INVALID_ENTITY) |
| EntityID | instantiate (Scene &scene, const std::filesystem::path &hfmodel_path, EntityID parent=INVALID_ENTITY) |
| EntityID | instantiate (Scene &scene, const ImportResult &model, EntityID parent=INVALID_ENTITY) |
Private Member Functions | |
| EntityID | instantiate_node (Scene &scene, const ImportResult &model, size_t node_index, EntityID parent) |
| void | attach_mesh_components (Entity *entity, const ImportedMesh &mesh_ref) |
Private Attributes | |
| AssetManager & | assets_ |
| AssetRegistry & | registry_ |
Creates scene entities from an ImportResult.
Definition at line 14 of file ModelInstantiator.h.
| hellfire::ModelInstantiator::ModelInstantiator | ( | AssetManager & | assets, |
| AssetRegistry & | registry | ||
| ) |
Definition at line 13 of file ModelInstantiator.cpp.
|
private |
Definition at line 101 of file ModelInstantiator.cpp.
| EntityID hellfire::ModelInstantiator::instantiate | ( | Scene & | scene, |
| AssetID | model_asset_id, | ||
| EntityID | parent = INVALID_ENTITY |
||
| ) |
Definition at line 18 of file ModelInstantiator.cpp.
| EntityID hellfire::ModelInstantiator::instantiate | ( | Scene & | scene, |
| const ImportResult & | model, | ||
| EntityID | parent = INVALID_ENTITY |
||
| ) |
Definition at line 40 of file ModelInstantiator.cpp.
| EntityID hellfire::ModelInstantiator::instantiate | ( | Scene & | scene, |
| const std::filesystem::path & | hfmodel_path, | ||
| EntityID | parent = INVALID_ENTITY |
||
| ) |
Definition at line 28 of file ModelInstantiator.cpp.
|
private |
Definition at line 51 of file ModelInstantiator.cpp.
|
private |
Definition at line 28 of file ModelInstantiator.h.
|
private |
Definition at line 29 of file ModelInstantiator.h.