| 337 | } |
| 338 | |
| 339 | ref<Material> MaterialSystem::getMaterialByName(const std::string& name) const |
| 340 | { |
| 341 | for (const auto& pMaterial : mMaterials) |
| 342 | { |
| 343 | if (pMaterial->getName() == name) return pMaterial; |
| 344 | } |
| 345 | return nullptr; |
| 346 | } |
| 347 | |
| 348 | size_t MaterialSystem::removeDuplicateMaterials(std::vector<MaterialID>& idMap) |
| 349 | { |
no test coverage detected