[59] | 1 | #include "CullingManager.h" |
---|
| 2 | |
---|
| 3 | namespace GtpVisibility { |
---|
| 4 | |
---|
| 5 | //----------------------------------------------------------------------- |
---|
[74] | 6 | CullingManager::CullingManager(): |
---|
| 7 | mHierarchyInterface(NULL), mVisibilityThreshold(0), mNumQueryCulledNodes(0), |
---|
[87] | 8 | mNumFrustumCulledNodes(0), mNumQueriesIssued(0) |
---|
[59] | 9 | { |
---|
| 10 | } |
---|
| 11 | //----------------------------------------------------------------------- |
---|
| 12 | void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface) |
---|
| 13 | { |
---|
| 14 | mHierarchyInterface = hierarchyInterface; |
---|
| 15 | } |
---|
[74] | 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 | } |
---|
[87] | 31 | //-----------------------------------------------------------------------
|
---|
| 32 | unsigned int CullingManager::GetNumQueriesIssued()
|
---|
| 33 | {
|
---|
| 34 | return mNumQueriesIssued;
|
---|
| 35 | } |
---|
| 36 | //-----------------------------------------------------------------------
|
---|
| 37 | void CullingManager::InitFrame() |
---|
| 38 | { |
---|
| 39 | mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0; |
---|
| 40 | } |
---|
[59] | 41 | } // namespace GtpVisibility |
---|