|
lmgl 1.0.0
A lightweight OpenGL graphics engine library written in C++
|
Class for loading 3D models using Assimp. More...
#include <model_loader.hpp>
Static Public Member Functions | |
| static std::shared_ptr< scene::Node > | load (const std::string &fpath, std::shared_ptr< renderer::Shader > shader, const ModelLoadOptions &options) |
| Load a 3D model from a file. | |
Class for loading 3D models using Assimp.
This class provides functions to load 3D models from various file formats using the Assimp library. It handles the processing of meshes, materials, and textures, and constructs a scene graph representation of the model.
|
static |
Load a 3D model from a file.
This function loads a 3D model from the specified file path using the Assimp library. It processes the model's meshes, materials, and textures, and constructs a scene graph representation of the model.
| fpath | The file path to the 3D model. |
| shader | A shared pointer to the shader to be used for rendering the model. |
| options | Options for loading the model. |