| 51 | |
| 52 | |
| 53 | RenderGlowMgr::GlowMaterialHook::GlowMaterialHook( BaseMatInstance *matInst ) |
| 54 | : mGlowMatInst( NULL ) |
| 55 | { |
| 56 | mGlowMatInst = (MatInstance*)matInst->getMaterial()->createMatInstance(); |
| 57 | mGlowMatInst->getFeaturesDelegate().bind( &GlowMaterialHook::_overrideFeatures ); |
| 58 | mGlowMatInst->setUserObject(matInst->getUserObject()); |
| 59 | mGlowMatInst->init( matInst->getRequestedFeatures(), |
| 60 | matInst->getVertexFormat() ); |
| 61 | } |
| 62 | |
| 63 | RenderGlowMgr::GlowMaterialHook::~GlowMaterialHook() |
| 64 | { |
nothing calls this directly
no test coverage detected