![]() |
Radium Engine
1.5.0
|
#include <IO/AssimpLoader/AssimpGeometryDataLoader.hpp>
Inherits Ra::Core::Asset::DataLoader< DATA >.
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.