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}
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
A scene is the overarching structure which can spawn, contain and destroy actors or entities.
Definition Scene.h:56
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:106