Get a list of all vertex formats that occur for a given material index The output list contains duplicate elements
| 75 | // Get a list of all vertex formats that occur for a given material index |
| 76 | // The output list contains duplicate elements |
| 77 | static void GetVFormatList(const aiScene *pcScene, unsigned int iMat, std::list<unsigned int> &aiOut) { |
| 78 | for (unsigned int i = 0; i < pcScene->mNumMeshes; ++i) { |
| 79 | aiMesh *pcMesh = pcScene->mMeshes[i]; |
| 80 | if (iMat == pcMesh->mMaterialIndex) { |
| 81 | aiOut.push_back(GetMeshVFormat(pcMesh)); |
| 82 | } |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | } |
| 87 | // ------------------------------------------------------------------------------------------------ |
no test coverage detected