mirror of
https://github.com/bailwillharr/engine.git
synced 2024-09-21 04:51:18 +00:00
20 lines
500 B
C++
20 lines
500 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "scene.h"
|
|
|
|
namespace engine::util {
|
|
|
|
/*
|
|
* Loads the default scene found in a glTF file into 'scene'.
|
|
* 'isStatic' will mark every transform as static to aid rendering optimisation.
|
|
* Returns the top-level glTF node as an engine entity.
|
|
*
|
|
* Loader limitations:
|
|
* - Can only load .glb files
|
|
* - glTF files must contain all textures
|
|
*/
|
|
engine::Entity LoadGLTF(Scene& scene, const std::string& path, bool isStatic = false);
|
|
|
|
} // namespace engine::util
|