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

Method GetRangeDuration

trinity/Eve/EveTransform.cpp:480–492  ·  view source on GitHub ↗

--------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

478
479// --------------------------------------------------------------------------------
480float EveTransform::GetRangeDuration( const std::string& name, const std::string& rangeName ) const
481{
482 float maxDuration = 0.f;
483 for( auto it = m_curveSets.begin(); it != m_curveSets.end(); it++ )
484 {
485 if( ( *it )->GetName() == name )
486 {
487 maxDuration = std::max( maxDuration, ( *it )->GetRangeDuration( rangeName.c_str() ) );
488 }
489 }
490
491 return maxDuration;
492}
493
494void EveTransform::GetPickingBatches( ITriRenderBatchAccumulator* batches, Tr2PickTypes pickTypes, const Tr2PerObjectData* perObjectData )
495{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected