home *** CD-ROM | disk | FTP | other *** search
- #ifndef __Q3bspExtension_h__
- #define __Q3bspExtension_h__
-
- #include "vectormath.h"
- #include "Mesh.h"
- #include "PotentialVisibilitySet.h"
-
- typedef struct Q3bspExtensionNode_s{
- vec4_t plane;
- int front;
- int back;
- vec3_t min;
- vec3_t max;
- }Q3bspExtensionNode_t;
-
- typedef struct Q3bspExtensionLeaf_s{
- vec3_t min, max;
- int* faceIndices;
- int numFaceIndices;
- }Q3bspExtensionLeaf_t;
-
- class Q3bspExtension{
- public:
- Mesh* mesh;
- Q3bspExtensionNode_t** nodes;
- int numNodes;
- Q3bspExtensionLeaf_t** leafs;
- int numLeafs;
- PotentialVisibilitySet* pvs;
- BitSet* facesDrawn;
-
- Q3bspExtension();
- ~Q3bspExtension();
-
- int getLeafIndex(vec3_t pos);
- void render();
-
- Texture** textures;
- int numTextures;
- Texture** lightmaps;
- int numLightmaps;
- };
-
- #endif /* __Q3bspExtension_h__ */
-
-