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

Utility class for spawning GLTF meshes into a scene. More...

#include <GltfSpawner.h>

Static Public Member Functions

static std::vector< StaticMeshActor * > 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).

Date
2026-01-20
Author
Konstantin Passig

Definition at line 18 of file GltfSpawner.h.

Member Function Documentation

◆ spawnAll()

std::vector< StaticMeshActor * > EngineCore::GltfSpawner::spawnAll ( Scene * scene,
const std::filesystem::path & gltfPath )
static

Definition at line 47 of file GltfSpawner.cpp.

References EngineCore::Scene::getAssetManager(), EngineCore::AssetManager::loadEcsModel(), EngineCore::GltfLoader::loadMetadataOnly(), and EngineCore::Scene::spawnActor().

Here is the call graph for this function:

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