| 307 | } |
| 308 | |
| 309 | BaseMatInstance* ReflectionManager::getReflectionMaterial( BaseMatInstance *inMat ) const |
| 310 | { |
| 311 | // See if we have an existing material hook. |
| 312 | ReflectionMaterialHook *hook = static_cast<ReflectionMaterialHook*>( inMat->getHook( ReflectionMaterialHook::Type ) ); |
| 313 | if ( !hook ) |
| 314 | { |
| 315 | // Create a hook and initialize it using the incoming material. |
| 316 | hook = new ReflectionMaterialHook; |
| 317 | hook->init( inMat ); |
| 318 | inMat->addHook( hook ); |
| 319 | } |
| 320 | |
| 321 | return hook->getReflectMat(); |
| 322 | } |
| 323 | |
| 324 | bool ReflectionManager::_handleDeviceEvent( GFXDevice::GFXDeviceEventType evt ) |
| 325 | { |
no test coverage detected