| 32 | } |
| 33 | |
| 34 | void BaseMatInstance::addHook( MatInstanceHook *hook ) |
| 35 | { |
| 36 | AssertFatal( hook, "BaseMatInstance::addHook() - Got null hook!" ); |
| 37 | |
| 38 | const MatInstanceHookType &type = hook->getType(); |
| 39 | |
| 40 | while ( mHooks.size() <= type ) |
| 41 | mHooks.push_back( NULL ); |
| 42 | |
| 43 | delete mHooks[type]; |
| 44 | mHooks[type] = hook; |
| 45 | } |
| 46 | |
| 47 | MatInstanceHook* BaseMatInstance::getHook( const MatInstanceHookType &type ) const |
| 48 | { |
no test coverage detected