MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetResourceByName

Method GetResourceByName

trinity/Shader/Tr2Effect.cpp:1569–1583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567}
1568
1569ITriEffectParameter* Tr2Effect::GetResourceByName( const char* name ) const
1570{
1571 CCP_STATS_ZONE( __FUNCTION__ );
1572
1573 for( auto it = m_resources.cbegin(); it != m_resources.cend(); ++it )
1574 {
1575 ITriEffectParameter* p = *it;
1576 const char* candidate = p->GetParameterName();
1577 if( candidate && strcmp( candidate, name ) == 0 )
1578 {
1579 return p;
1580 }
1581 }
1582 return nullptr;
1583}
1584
1585// --------------------------------------------------------------------------------------
1586// Description:

Callers 4

ApplyBloomFunction · 0.80
TransformMeshesMethod · 0.80
UpdateSyncronousMethod · 0.80

Calls 1

GetParameterNameMethod · 0.45

Tested by

no test coverage detected