source: GTP/trunk/App/Demos/Vis/FriendlyCulling/src/FrustumCullingTraverser.cpp @ 2802

Revision 2802, 474 bytes checked in by mattausch, 16 years ago (diff)

worked on renderqueue

Line 
1#include "FrustumCullingTraverser.h"
2#include "SceneEntity.h"
3
4
5namespace CHCDemoEngine
6{
7
8FrustumCullingTraverser::FrustumCullingTraverser(): RenderTraverser()
9{
10}
11
12
13void FrustumCullingTraverser::Traverse()
14{
15        while (!mDistanceQueue.empty())
16        {
17                BvhNode *node = mDistanceQueue.top();
18                mDistanceQueue.pop();
19       
20                if (mBvh->IsWithinViewFrustum(node))
21                {
22                        TraverseNode(node);
23                }
24                else
25                {
26                        mStats.mNumFrustumCulledNodes ++;
27                }
28        }
29}
30
31
32}
Note: See TracBrowser for help on using the repository browser.