| 1410 | } |
| 1411 | |
| 1412 | void RenderManager::setEntityOpacity(Ogre::Entity* ent, float opacity) |
| 1413 | { |
| 1414 | for (unsigned int i = 0; i < ent->getNumSubEntities(); ++i) |
| 1415 | { |
| 1416 | Ogre::SubEntity* subEntity = ent->getSubEntity(i); |
| 1417 | subEntity->setMaterialName(setMaterialOpacity(subEntity->getMaterialName(), opacity)); |
| 1418 | } |
| 1419 | } |
| 1420 | |
| 1421 | std::string RenderManager::setMaterialOpacity(const std::string& materialName, float opacity) |
| 1422 | { |
nothing calls this directly
no test coverage detected