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

Method IsInFrustum

trinity/Interior/Tr2IntSkinnedObject.cpp:491–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489#include "TriFrustum.h"
490
491bool Tr2IntSkinnedObject::IsInFrustum( const TriFrustum& frustum, Matrix& objectToWorld ) const
492{
493 Vector3 minBounds, maxBounds;
494 if( !GetWorldBoundingBox( minBounds, maxBounds ) )
495 {
496 return false;
497 }
498 objectToWorld = m_transform;
499 return frustum.IsBoxVisible( minBounds, maxBounds );
500}
501
502void Tr2IntSkinnedObject::GetPickingBatches( ITriRenderBatchAccumulator* batches, Tr2PickTypes pickTypes, const Tr2PerObjectData* perObjectData )
503{

Callers 1

ResolveVisibilityMethod · 0.45

Calls 1

IsBoxVisibleMethod · 0.80

Tested by

no test coverage detected