------------------------------------------------------------------------------------------------ Get the memory requirements of a single node
| 1161 | // ------------------------------------------------------------------------------------------------ |
| 1162 | // Get the memory requirements of a single node |
| 1163 | inline |
| 1164 | void 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 |
no outgoing calls
no test coverage detected