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

Method getCells

Engine/source/forest/forestDataFile.cpp:722–732  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

720}
721
722void ForestData::getCells( const Frustum &frustum, Vector<ForestCell*> *outCells ) const
723{
724 PROFILE_SCOPE( ForestData_getCells_frustum );
725
726 BucketTable::ConstIterator iter = mBuckets.begin();
727 for (; iter != mBuckets.end(); ++iter)
728 {
729 if ( !frustum.isCulled( iter->value->getBounds() ) )
730 outCells->push_back( iter->value );
731 }
732}
733
734void ForestData::getCells( Vector<ForestCell*> *outCells ) const
735{

Callers 2

prepRenderImageMethod · 0.80
_renderCellBoundsMethod · 0.80

Calls 5

beginMethod · 0.45
endMethod · 0.45
isCulledMethod · 0.45
getBoundsMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected