engine/include/gltf_loader.h

20 lines
500 B
C
Raw Normal View History

2023-10-02 11:54:37 +00:00
#pragma once
#include <string>
#include "scene.h"
namespace engine::util {
2024-02-03 00:01:01 +00:00
/*
* 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.
2024-03-31 10:11:22 +00:00
*
2024-02-03 00:01:01 +00:00
* Loader limitations:
* - Can only load .glb files
* - glTF files must contain all textures
*/
2023-10-02 11:54:37 +00:00
engine::Entity LoadGLTF(Scene& scene, const std::string& path, bool isStatic = false);
2024-03-31 10:11:22 +00:00
} // namespace engine::util