Changeset 130 for trunk/VUT/GtpVisibility/src
- Timestamp:
- 06/14/05 02:50:05 (20 years ago)
- Location:
- trunk/VUT/GtpVisibility/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/GtpVisibility/src/CoherentHierarchicalCullingManager.cpp
r119 r130 48 48 49 49 if (!mHierarchyInterface->CheckFrustumVisible(node, intersects)) 50 { //if (mHierarchyInterface->mIsShadowPass)50 { 51 51 mNumFrustumCulledNodes ++; 52 52 -
trunk/VUT/GtpVisibility/src/HierarchyInterface.cpp
r120 r130 7 7 //----------------------------------------------------------------------- 8 8 HierarchyInterface::HierarchyInterface(): 9 mFrameId(0), mNumTraversedNodes(0), m NumRenderedNodes(0),10 m SceneRoot(0), mPreviousNode(0), mCurrentTestIdx(0), mUseOptimization(false)9 mFrameId(0), mNumTraversedNodes(0), mSceneRoot(0), 10 mPreviousNode(0), mCurrentTestIdx(0), mUseOptimization(false) 11 11 //, mIsShadowPass(false) 12 12 { … … 26 26 void HierarchyInterface::InitFrame(HierarchyNode *root) 27 27 { 28 mFrameId ++;28 ++ mFrameId; 29 29 mCurrentTestIdx = 0; 30 30 mNumTraversedNodes = 0; 31 m NumRenderedNodes = 0;31 mRenderedNodes.clear(); 32 32 33 33 SetSceneRoot(root); … … 63 63 unsigned int HierarchyInterface::GetNumRenderedNodes() 64 64 { 65 return mNumRenderedNodes;65 return (unsigned int)mRenderedNodes.size(); 66 66 } 67 67 //----------------------------------------------------------------------- 68 68 void HierarchyInterface::SetUseOptimization(bool useOptimization) 69 69 { 70 70 mUseOptimization = useOptimization; 71 71 } 72 //----------------------------------------------------------------------- 73 std::vector<HierarchyNode *> *HierarchyInterface::GetRenderedNodes() 74 { 75 return &mRenderedNodes; 76 } 72 77 73 78 } // namespace GtpVisibility -
trunk/VUT/GtpVisibility/src/QueryManager.cpp
r71 r130 5 5 6 6 QueryManager::QueryManager(HierarchyInterface *hierarchyInterface) 7 :mHierarchyInterface(hierarchyInterface) 7 8 { 8 9 } -
trunk/VUT/GtpVisibility/src/VisibilityManager.cpp
r114 r130 83 83 return mCullingManagerType; 84 84 } 85 85 //----------------------------------------------------------------------- 86 void VisibilityManager::SetQueryManager(QueryManager *queryManager) 87 { 88 mQueryManager = queryManager; 89 } 90 //----------------------------------------------------------------------- 91 QueryManager *VisibilityManager::GetQueryManager() 92 { 93 return mQueryManager; 94 } 86 95 } // namespace GtpVisibility
Note: See TracChangeset
for help on using the changeset viewer.