home *** CD-ROM | disk | FTP | other *** search
- #ifndef __PotentialVisibilitySet_h__
- #define __PotentialVisibilitySet_h__
-
- #include "vectormath.h"
- #include "BitSet.h"
-
- typedef struct PVSCluster_s{
- vec3_t min, max;
- BitSet* visibleClusters;
- }PVSCluster_t;
-
- class PotentialVisibilitySet{
- public:
- bool enabled;
-
- PotentialVisibilitySet(unsigned int size);
- ~PotentialVisibilitySet();
-
- void setCurrentCluster(unsigned int cluster);
- bool clusterIsVisible(unsigned int current, unsigned int test);
- bool clusterIsVisible(unsigned int test);
- PVSCluster_t** getClusters();
- unsigned int getNumClusters();
-
- void drawClusterBorders();
-
- protected:
- PVSCluster_t** clusters;
- unsigned int numClusters;
- unsigned int currentCluster;
- };
-
-
-
- #endif /* __PotentialVisibilitySet_h__ */
-