sculpto
Public Member Functions | List of all members
scl::assets_manager::mesh_loader_phong Class Reference

#include <meshes_load.h>

Public Member Functions

 mesh_loader_phong (const aiScene *Scene, const std::string &DirectoryPath, std::vector< submesh_props< vertex > > &OutSubmeshes)
 
void ProcessNode (aiNode *Node)
 

Detailed Description

Mesh for phong lighting model loader class.

Definition at line 27 of file meshes_load.h.

Constructor & Destructor Documentation

◆ mesh_loader_phong()

scl::assets_manager::mesh_loader_phong::mesh_loader_phong ( const aiScene *  Scene,
const std::string &  DirectoryPath,
std::vector< submesh_props< vertex > > &  OutSubmeshes 
)

Definition at line 94 of file meshes_load.cpp.

96 :
97 Scene(Scene), DirectoryPath(DirectoryPath), OutSubmeshes(OutSubmeshes) {}

Member Function Documentation

◆ ProcessNode()

void scl::assets_manager::mesh_loader_phong::ProcessNode ( aiNode *  Node)

Definition at line 24 of file meshes_load.cpp.

25{
26 // Process all meshes of current node.
27 for (u32 i = 0; i < Node->mNumMeshes; i++)
28 {
29 aiMesh *mesh = Scene->mMeshes[Node->mMeshes[i]];
30 submesh_props<scl::vertex> generating_submesh_props;
31 GenerateSubmesh(mesh, generating_submesh_props);
32 OutSubmeshes.push_back(generating_submesh_props);
33 }
34
35 // Run processing of all child nodes
36 for (u32 i = 0; i < Node->mNumChildren; i++)
37 ProcessNode(Node->mChildren[i]);
38}
uint32_t u32
Definition: math_common.h:21

The documentation for this class was generated from the following files: