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

Revision 142, 1.1 KB checked in by mattausch, 20 years ago (diff)

added some assumed visibility

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 decition variable
19                wether an occlusion query should be issued or not.
20                @param assumedVisibility indicates that same visibility should be assumed
21                 for approximately assumedVisibility frames.
22                 if 0, no assumedVisibility will be tested.
23        */
24        void SetAssumedVisibility(int assumedVisibility);
25protected:
26        /** Decides wether occlusion query should be issued depending on some
27                assumed visibility factor.
28                @returns if occlusion query should be issued
29        */
30        bool DecideQueryTest(HierarchyNode *node) const;
31        int mAssumedVisibility;
32};
33
34} // namespace GtpVisibility
35
36#endif // CoherentHierarchicalCullingManager_H
Note: See TracBrowser for help on using the repository browser.