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

Method GetCurveSetDuration

trinity/Eve/EveLensflare.cpp:453–464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

451}
452
453float EveLensflare::GetCurveSetDuration( const std::string& name ) const
454{
455 float maxDuration = 0.f;
456 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
457 {
458 if( ( *it )->GetName() == name )
459 {
460 maxDuration = max( maxDuration, ( *it )->GetMaxCurveDuration() );
461 }
462 }
463 return maxDuration;
464}
465
466float EveLensflare::GetRangeDuration( const std::string& name, const std::string& rangeName ) const
467{

Callers

nothing calls this directly

Calls 4

GetMaxCurveDurationMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected