1 | #include "CullingManager.h" |
---|
2 | |
---|
3 | namespace GtpVisibility { |
---|
4 | |
---|
5 | //----------------------------------------------------------------------- |
---|
6 | CullingManager::CullingManager(): |
---|
7 | mHierarchyInterface(NULL), mVisibilityThreshold(0), mNumQueryCulledNodes(0), |
---|
8 | mNumFrustumCulledNodes(0), mNumQueriesIssued(0) |
---|
9 | { |
---|
10 | } |
---|
11 | //----------------------------------------------------------------------- |
---|
12 | void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface) |
---|
13 | { |
---|
14 | mHierarchyInterface = hierarchyInterface; |
---|
15 | } |
---|
16 | //----------------------------------------------------------------------- |
---|
17 | void CullingManager::SetVisibilityThreshold(unsigned int visibilityThreshold) |
---|
18 | { |
---|
19 | mVisibilityThreshold = visibilityThreshold; |
---|
20 | } |
---|
21 | //-----------------------------------------------------------------------
|
---|
22 | unsigned int CullingManager::GetNumFrustumCulledNodes()
|
---|
23 | {
|
---|
24 | return mNumFrustumCulledNodes;
|
---|
25 | }
|
---|
26 | //-----------------------------------------------------------------------
|
---|
27 | unsigned int CullingManager::GetNumQueryCulledNodes()
|
---|
28 | {
|
---|
29 | return mNumQueryCulledNodes;
|
---|
30 | } |
---|
31 | //-----------------------------------------------------------------------
|
---|
32 | unsigned int CullingManager::GetNumQueriesIssued()
|
---|
33 | {
|
---|
34 | return mNumQueriesIssued;
|
---|
35 | } |
---|
36 | //-----------------------------------------------------------------------
|
---|
37 | void CullingManager::InitFrame() |
---|
38 | { |
---|
39 | mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0; |
---|
40 | } |
---|
41 | } // namespace GtpVisibility |
---|