source: trunk/VUT/GtpVisibility/src/CullingManager.cpp @ 87

Revision 87, 1.4 KB checked in by mattausch, 20 years ago (diff)
RevLine 
[59]1#include "CullingManager.h"
2
3namespace GtpVisibility {
4
5//-----------------------------------------------------------------------
[74]6CullingManager::CullingManager():
7mHierarchyInterface(NULL), mVisibilityThreshold(0), mNumQueryCulledNodes(0),
[87]8mNumFrustumCulledNodes(0), mNumQueriesIssued(0)
[59]9{
10}
11//-----------------------------------------------------------------------
12void CullingManager::SetHierarchyInterface(HierarchyInterface *hierarchyInterface)
13{
14        mHierarchyInterface = hierarchyInterface;
15}
[74]16//-----------------------------------------------------------------------
17void CullingManager::SetVisibilityThreshold(unsigned int visibilityThreshold)
18{
19        mVisibilityThreshold = visibilityThreshold;
20}
21//-----------------------------------------------------------------------
22unsigned int CullingManager::GetNumFrustumCulledNodes()
23{
24        return mNumFrustumCulledNodes;
25}
26//-----------------------------------------------------------------------
27unsigned int CullingManager::GetNumQueryCulledNodes()
28{
29        return mNumQueryCulledNodes;
30}
[87]31//-----------------------------------------------------------------------
32unsigned int CullingManager::GetNumQueriesIssued()
33{
34        return mNumQueriesIssued;
35}
36//-----------------------------------------------------------------------
37void CullingManager::InitFrame()
38{
39        mNumFrustumCulledNodes = mNumQueryCulledNodes = mNumQueriesIssued = 0;
40}
[59]41} // namespace GtpVisibility
Note: See TracBrowser for help on using the repository browser.