home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / PotentialVisibilitySet.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  761 b   |  36 lines

  1. #ifndef __PotentialVisibilitySet_h__
  2. #define __PotentialVisibilitySet_h__
  3.  
  4. #include "vectormath.h"
  5. #include "BitSet.h"
  6.  
  7. typedef struct PVSCluster_s{
  8.     vec3_t min, max;
  9.     BitSet* visibleClusters;
  10. }PVSCluster_t;
  11.  
  12. class PotentialVisibilitySet{
  13. public:
  14.     bool enabled;
  15.  
  16.     PotentialVisibilitySet(unsigned int size);
  17.     ~PotentialVisibilitySet();
  18.  
  19.     void setCurrentCluster(unsigned int cluster);
  20.     bool clusterIsVisible(unsigned int current, unsigned int test);
  21.     bool clusterIsVisible(unsigned int test);
  22.     PVSCluster_t** getClusters();
  23.     unsigned int getNumClusters();
  24.  
  25.     void drawClusterBorders();
  26.  
  27. protected:
  28.     PVSCluster_t** clusters;
  29.     unsigned int numClusters;
  30.     unsigned int currentCluster;
  31. };
  32.  
  33.  
  34.  
  35. #endif    /* __PotentialVisibilitySet_h__ */
  36.