| 158 | } |
| 159 | |
| 160 | inline BaseMatInstance* RenderBinManager::getMaterial( RenderInst *inst ) const |
| 161 | { |
| 162 | if ( inst->type == RenderPassManager::RIT_Mesh || |
| 163 | inst->type == RenderPassManager::RIT_Decal || |
| 164 | inst->type == RenderPassManager::RIT_DecalRoad || |
| 165 | inst->type == RenderPassManager::RIT_Translucent ) |
| 166 | return static_cast<MeshRenderInst*>(inst)->matInst; |
| 167 | |
| 168 | return NULL; |
| 169 | } |
| 170 | |
| 171 | #endif // _RENDERBINMANAGER_H_ |
no outgoing calls
no test coverage detected