void CCCameraBase::updateVisibleObjects()
{	
#if defined PROFILEON
    CCProfiler profile( "CCCameraBase::updateVisibleObjects()" );
#endif
    
    // Update visible objects
    if( visiblesList )
    {
        CCScanVisibleCollideables( frustum, *visiblesList );
    }
    else
    {
        CCOctreeScanVisibleCollideables( frustum );
    }
}
Esempio n. 2
0
void CCCameraBase::updateVisibleObjects()
{	
#if defined PROFILEON
    CCProfiler profile( "CCCameraBase::updateVisibleObjects()" );
#endif
    
    // Update visible objects
    if( visiblesList )
    {
        CCScanVisibleCollideables( frustum, *visiblesList, visibleCollideables );
    }
    else
    {
        CCOctreeScanVisibleCollideables( frustum, visibleCollideables );
    }
    
    for( int i=0; i<visibleCollideables.length; ++i )
    {
        sortedVisibleCollideables[i] = i;
    }
}