| 321 | } |
| 322 | |
| 323 | BaseMatInstance* ReflectionManager::getReflectionMaterial( BaseMatInstance *inMat ) const |
| 324 | { |
| 325 | // See if we have an existing material hook. |
| 326 | ReflectionMaterialHook *hook = static_cast<ReflectionMaterialHook*>( inMat->getHook( ReflectionMaterialHook::Type ) ); |
| 327 | if ( !hook ) |
| 328 | { |
| 329 | // Create a hook and initialize it using the incoming material. |
| 330 | hook = new ReflectionMaterialHook; |
| 331 | hook->init( inMat ); |
| 332 | inMat->addHook( hook ); |
| 333 | } |
| 334 | |
| 335 | return hook->getReflectMat(); |
| 336 | } |
| 337 | |
| 338 | bool ReflectionManager::_handleDeviceEvent( GFXDevice::GFXDeviceEventType evt ) |
| 339 | { |
nothing calls this directly
no test coverage detected