Radium Engine
1.5.20
|
#include <IO/AssimpLoader/AssimpGeometryDataLoader.hpp>
Public Member Functions | |
AssimpGeometryDataLoader (const std::string &filepath, const bool VERBOSE_MODE=false) | |
void | loadData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::GeometryData > > &data) override |
Convert all the geometry data from scene into data . | |
Protected Member Functions | |
bool | sceneHasGeometry (const aiScene *scene) const |
Return true if the given scene has geometry data. | |
uint | sceneGeometrySize (const aiScene *scene) const |
Return the number of AssImp geometry data in the given scene. | |
void | loadGeometryData (const aiScene *scene, std::vector< std::unique_ptr< Core::Asset::GeometryData > > &data) |
Fill data with all the GeometryData from scene . | |
void | loadMaterial (const aiMaterial &material, Core::Asset::GeometryData &data) const |
Fill data with the Material data from material . | |
void | loadMeshFrame (const aiNode *node, const Core::Transform &parentFrame, const std::map< uint, size_t > &indexTable, std::vector< std::unique_ptr< Core::Asset::GeometryData > > &data) const |
Fill data with the transformation data from node and parentFrame . | |
The AssimpGeometryDataLoader converts geometry data from the Assimp format to the Asset::GeometryData format.
Definition at line 32 of file AssimpGeometryDataLoader.hpp.
|
explicit |
Definition at line 16 of file AssimpGeometryDataLoader.cpp.
|
override |
Convert all the geometry data from scene
into data
.
Definition at line 22 of file AssimpGeometryDataLoader.cpp.
|
protected |
Fill data
with all the GeometryData from scene
.
Definition at line 282 of file AssimpGeometryDataLoader.cpp.
|
protected |
Fill data
with the Material data from material
.
Definition at line 206 of file AssimpGeometryDataLoader.cpp.
|
protected |
Fill data
with the transformation data from node
and parentFrame
.
Definition at line 138 of file AssimpGeometryDataLoader.cpp.
|
protected |
Return the number of AssImp geometry data in the given scene.
Definition at line 50 of file AssimpGeometryDataLoader.cpp.
|
inlineprotected |
Return true if the given scene has geometry data.
Definition at line 46 of file AssimpGeometryDataLoader.cpp.