Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
GltfSpawner.h
Go to the documentation of this file.
1#pragma once
2#include <filesystem>
3#include <vector>
4
7
8namespace Engine::Entities {
16 public:
17 template<typename ActorT = StaticMeshActor>
18 static std::vector<ActorT*> spawnAll( Scene * scene, const std::filesystem::path & gltfPath )
19 {
20 return Scene::spawnAll<ActorT>( scene, gltfPath );
21 }
22
23 template<typename ActorT = StaticMeshActor>
24 static std::vector<ActorT*> spawnAll( Scene * scene, Assets::GltfHandle gltf )
25 {
26 return Scene::spawnAll<ActorT>( scene, gltf );
27 }
28 };
29}
Utility class for spawning GLTF meshes into a scene.
Definition GltfSpawner.h:15
static std::vector< ActorT * > spawnAll(Scene *scene, const std::filesystem::path &gltfPath)
Definition GltfSpawner.h:18
static std::vector< ActorT * > spawnAll(Scene *scene, Assets::GltfHandle gltf)
Definition GltfSpawner.h:24
A scene is the overarching structure which can spawn, contain and destroy actors or entities.
Definition Scene.h:62
static std::vector< ActorT * > spawnAll(Scene *scene, const std::filesystem::path &gltfPath)
Spawns all meshes from a GLTF file into the scene.
Definition Scene.h:118
AssetHandle< GltfHandleTag > GltfHandle