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

Method _getOrCreateHook

Engine/source/util/imposterCapture.cpp:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142ImposterCaptureMaterialHook* ImposterCaptureMaterialHook::_getOrCreateHook( BaseMatInstance *inMat )
143{
144 ImposterCaptureMaterialHook *hook = inMat->getHook<ImposterCaptureMaterialHook>();
145 if ( !hook )
146 {
147 // Create a hook and initialize it using the incoming material.
148 hook = new ImposterCaptureMaterialHook;
149 hook->init( inMat );
150 inMat->addHook( hook );
151 }
152
153 return hook;
154}
155
156
157ImposterCapture::ImposterCapture()

Callers

nothing calls this directly

Calls 2

addHookMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected