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

  1. #ifndef __Q3bspExtension_h__
  2. #define __Q3bspExtension_h__
  3.  
  4. #include "vectormath.h"
  5. #include "Mesh.h"
  6. #include "PotentialVisibilitySet.h"
  7.  
  8. typedef struct Q3bspExtensionNode_s{
  9.     vec4_t plane;
  10.     int front;
  11.     int back;
  12.     vec3_t min;
  13.     vec3_t max;
  14. }Q3bspExtensionNode_t;
  15.  
  16. typedef struct Q3bspExtensionLeaf_s{
  17.     vec3_t min, max;
  18.     int* faceIndices;
  19.     int numFaceIndices;
  20. }Q3bspExtensionLeaf_t;
  21.  
  22. class Q3bspExtension{
  23. public:
  24.     Mesh* mesh;
  25.     Q3bspExtensionNode_t** nodes;
  26.     int numNodes;
  27.     Q3bspExtensionLeaf_t** leafs;
  28.     int numLeafs;
  29.     PotentialVisibilitySet* pvs;
  30.     BitSet* facesDrawn;
  31.  
  32.     Q3bspExtension();
  33.     ~Q3bspExtension();
  34.  
  35.     int getLeafIndex(vec3_t pos);
  36.     void render();
  37.  
  38.     Texture** textures;
  39.     int numTextures;
  40.     Texture** lightmaps;
  41.     int numLightmaps;
  42. };
  43.  
  44. #endif    /* __Q3bspExtension_h__ */
  45.  
  46.