MCPcopy Create free account
hub / github.com/assimp/assimp / AddNodeWeight

Function AddNodeWeight

code/Common/Importer.cpp:1163–1175  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------ Get the memory requirements of a single node

Source from the content-addressed store, hash-verified

1161// ------------------------------------------------------------------------------------------------
1162// Get the memory requirements of a single node
1163inline
1164void AddNodeWeight(unsigned int& iScene,const aiNode* pcNode) {
1165 if ( nullptr == pcNode ) {
1166 return;
1167 }
1168 iScene += sizeof(aiNode);
1169 iScene += sizeof(unsigned int) * pcNode->mNumMeshes;
1170 iScene += sizeof(void*) * pcNode->mNumChildren;
1171
1172 for (unsigned int i = 0; i < pcNode->mNumChildren;++i) {
1173 AddNodeWeight(iScene,pcNode->mChildren[i]);
1174 }
1175}
1176
1177// ------------------------------------------------------------------------------------------------
1178// Get the memory requirements of the scene

Callers 1

GetMemoryRequirementsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected