bool CVradStaticPropMgr::ClipRayToStaticPropsInLeaf( PropTested_t& propTested, Ray_t const& ray, int leaf ) { EnumContext_t ctx; ctx.m_pRay = &ray; ctx.m_pPropTested = &propTested; return !m_pBSPTreeData->EnumerateElementsInLeaf( leaf, this, (int)&ctx ); }
bool CVradStaticPropMgr::ClipRayToStaticPropsInLeaf( PropTested_t& propTested, Ray_t const& ray, int leaf ) { if ( m_bIgnoreStaticPropTrace ) { // as if the trace passes right through return false; } EnumContext_t ctx; ctx.m_pRay = &ray; ctx.m_pPropTested = &propTested; return !m_pBSPTreeData->EnumerateElementsInLeaf( leaf, this, (int)&ctx ); }
// ISpatialLeafEnumerator bool CVradStaticPropMgr::EnumerateLeaf( int leaf, int context ) { return m_pBSPTreeData->EnumerateElementsInLeaf( leaf, this, context ); }