Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Entities::GltfSpawner Class Reference

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)

Detailed Description

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.

Member Function Documentation

◆ spawnAll()

template<typename ActorT = StaticMeshActor>
std::vector< ActorT * > Engine::Entities::GltfSpawner::spawnAll ( Scene * scene,
const std::filesystem::path & gltfPath )
inlinestatic

Definition at line 18 of file GltfSpawner.h.

References Engine::Entities::Scene::spawnAll().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Entity/GltfSpawner.h