AnimEngine
All Classes Namespaces Functions
TinyGltfUtil.hpp
1 #pragma once
2 #ifndef KJY_OBJECT_ORIENTED_OPENGL_TINY_GLTF_UTILITY_HPP_
3 #define KJY_OBJECT_ORIENTED_OPENGL_TINY_GLTF_UTILITY_HPP_
4 #include "world/Scene.hpp"
5 #include "graphics/GltfScenePopulator.hpp"
6 
7 enum class GLTFformat{AUTO, ASCII, BINARY};
8 
9 Scene load_gltf_as_scene(const std::string& gltf_path, GLTFformat format = GLTFformat::AUTO, const std::vector<ExtrasExtension*>& aExtensions = {});
10 Scene load_gltf_as_scene(std::istream& gltf_stream, GLTFformat format, const std::vector<ExtrasExtension*>& aExtensions = {});
11 
12 EmptyEntity* load_gltf_into_scene(const std::string& gltf_path, Scene* scene, GLTFformat format = GLTFformat::AUTO, const std::vector<ExtrasExtension*>& aExtensions = {});
13 EmptyEntity* load_gltf_into_scene(std::istream& gltf_stream, Scene* scene, GLTFformat format, const std::vector<ExtrasExtension*>& aExtensions = {});
14 
15 #endif
Definition: EntitiesBase.hpp:74
Definition: Scene.hpp:12