Lugdunum
0.1.0
|
Class for loading glTF files. More...
#include <GltfLoader.hpp>
Classes | |
struct | LoadedAssets |
Public Member Functions | |
GltfLoader (Renderer &renderer) | |
GltfLoader (const GltfLoader &)=delete | |
GltfLoader (GltfLoader &&)=delete | |
GltfLoader & | operator= (const GltfLoader &)=delete |
GltfLoader & | operator= (GltfLoader &&)=delete |
~GltfLoader ()=default | |
Resource::SharedPtr< Resource > | loadFile (const std::string &filename) override final |
Loads a glTF ressource from a file. More... | |
Public Member Functions inherited from lug::Graphics::Loader | |
Loader (Renderer &renderer) | |
Loader (const Loader &)=delete | |
Loader (Loader &&)=delete | |
Loader & | operator= (const Loader &)=delete |
Loader & | operator= (Loader &&)=delete |
virtual | ~Loader ()=default |
Private Member Functions | |
Resource::SharedPtr< Render::Texture > | createTexture (Renderer &renderer, const gltf2::Asset &asset, GltfLoader::LoadedAssets &loadedAssets, int32_t index) |
Resource::SharedPtr< Render::Material > | createMaterial (Renderer &renderer, const gltf2::Asset &asset, GltfLoader::LoadedAssets &loadedAssets, int32_t index) |
Resource::SharedPtr< Render::Material > | createDefaultMaterial (Renderer &renderer, GltfLoader::LoadedAssets &loadedAssets) |
Resource::SharedPtr< Render::Mesh > | createMesh (Renderer &renderer, const gltf2::Asset &asset, GltfLoader::LoadedAssets &loadedAssets, int32_t index) |
bool | createNode (Renderer &renderer, const gltf2::Asset &asset, GltfLoader::LoadedAssets &loadedAssets, int32_t index, Scene::Node &parent) |
Additional Inherited Members | |
Protected Attributes inherited from lug::Graphics::Loader | |
Renderer & | _renderer |
Class for loading glTF files.
Definition at line 22 of file GltfLoader.hpp.
lug::Graphics::GltfLoader::GltfLoader | ( | Renderer & | renderer | ) |
Definition at line 22 of file GltfLoader.cpp.
|
delete |
|
delete |
|
default |
|
delete |
|
delete |
|
finaloverridevirtual |
Loads a glTF ressource from a file.
[in] | filename | The filename |
Implements lug::Graphics::Loader.
Definition at line 448 of file GltfLoader.cpp.
|
private |
Definition at line 81 of file GltfLoader.cpp.
|
private |
Definition at line 168 of file GltfLoader.cpp.
|
private |
Definition at line 253 of file GltfLoader.cpp.
|
private |
Definition at line 282 of file GltfLoader.cpp.
|
private |
Definition at line 405 of file GltfLoader.cpp.