MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / GlowMaterialHook

Method GlowMaterialHook

Engine/source/renderInstance/renderGlowMgr.cpp:53–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53RenderGlowMgr::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
63RenderGlowMgr::GlowMaterialHook::~GlowMaterialHook()
64{

Callers

nothing calls this directly

Calls 7

getUserObjectMethod · 0.80
createMatInstanceMethod · 0.45
getMaterialMethod · 0.45
bindMethod · 0.45
setUserObjectMethod · 0.45
initMethod · 0.45
getVertexFormatMethod · 0.45

Tested by

no test coverage detected