source: trunk/VUT/GtpVisibility/include/CoherentHierarchicalCullingManager.h @ 147

Revision 147, 1.2 KB checked in by mattausch, 19 years ago (diff)

fixed average fps + shadow maps

Line 
1#ifndef _CoherentHierarchicalCullingManager_H__
2#define _CoherentHierarchicalCullingManager_H__
3
4#include "CullingManager.h"
5#include "HierarchyInterface.h"
6
7
8namespace GtpVisibility
9{
10
11/** Renders the scene with the coherent hierarchical culling algorithm.
12*/
13class CoherentHierarchicalCullingManager : public CullingManager
14{
15public:
16        CoherentHierarchicalCullingManager();
17        void RenderScene();
18        /** Sets assumed visibility which is a an estimation for e
19                how many frames the visibility is considered to be valied
20                @param assumedVisibility indicates for how many frames the
21                same visibility is be assumed.
22                if 0, the visibility is tested deterministically for each frame.
23        */
24        void SetAssumedVisibility(unsigned int assumedVisibility);
25
26protected:
27        /** Decides if node is considered to be visible depeding on the
28                assumed visibility factor.
29                @returns if node is considered to be visible
30        */
31        bool DecideVisible(HierarchyNode *node) const;
32
33        unsigned int mAssumedVisibility;
34        /** Threshold for rand function to return positive result with respect to
35                mAssumedVisibility.
36        */
37        int mThreshold;
38};
39
40} // namespace GtpVisibility
41
42#endif // CoherentHierarchicalCullingManager_H
Note: See TracBrowser for help on using the repository browser.