|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Utility class for spawning GLTF meshes into a scene. More...
#include <GltfSpawner.h>
Static Public Member Functions | |
| template<typename ActorT = StaticMeshActor> | |
| static std::vector< ActorT * > | spawnAll (Scene *scene, const std::filesystem::path &gltfPath) |
| Spawns one actor for each mesh node in a GLTF file. | |
| template<typename ActorT = StaticMeshActor> | |
| static std::vector< ActorT * > | spawnAll (Scene *scene, Assets::GltfHandle gltf) |
| Spawns one actor for each mesh node in a loaded GLTF asset. | |
Utility class for spawning GLTF meshes into a scene.
Can be used from Scene::loadContent() or from within Actor classes to spawn assemblies of meshes (e.g., a turret with multiple moving parts).
Definition at line 15 of file GltfSpawner.h.
|
inlinestatic |
Spawns one actor for each mesh node in a loaded GLTF asset.
| ActorT | Actor type to spawn. Defaults to StaticMeshActor. |
| scene | Scene that owns the spawned actors. |
| gltf | Loaded GLTF asset handle. |
Definition at line 38 of file GltfSpawner.h.
References Engine::Entities::Scene::spawnAll().
|
inlinestatic |
Spawns one actor for each mesh node in a GLTF file.
| ActorT | Actor type to spawn. Defaults to StaticMeshActor. |
| scene | Scene that owns the spawned actors. |
| gltfPath | Path to the GLTF/GLB asset. |
Definition at line 25 of file GltfSpawner.h.
References Engine::Entities::Scene::spawnAll().