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

Method addHook

Engine/source/materials/baseMatInstance.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void 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
47MatInstanceHook* BaseMatInstance::getHook( const MatInstanceHookType &type ) const
48{

Callers 7

getReflectionMaterialMethod · 0.80
getInstancingMatMethod · 0.80
getShadowMaterialMethod · 0.80
_getShadowMaterialMethod · 0.80
renderMethod · 0.80
getDeferredMaterialMethod · 0.80
_getOrCreateHookMethod · 0.80

Calls 3

getTypeMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected