4 const int LUMP_ENTITIES = 0;
5 const int LUMP_SHADERS = 1;
6 const int LUMP_PLANES = 2;
7 const int LUMP_NODES = 3;
8 const int LUMP_LEAFS = 4;
9 const int LUMP_LEAFSURFACES = 5;
10 const int LUMP_LEAFBRUSHES = 6;
11 const int LUMP_MODELS = 7;
12 const int LUMP_BRUSHES = 8;
13 const int LUMP_BRUSHSIDES = 9;
14 const int LUMP_DRAWVERTS = 10;
15 const int LUMP_DRAWINDEXES = 11;
16 const int LUMP_FOGS = 12;
17 const int LUMP_SURFACES = 13;
18 const int LUMP_LIGHTMAPS = 14;
19 const int LUMP_LIGHTGRID = 15;
20 const int LUMP_VISIBILITY = 16;
21 const int HEADER_LUMPS = 17;
31 lump_t lumps[HEADER_LUMPS];
41 int children[2]; // negative numbers are -(leafs+1), not nodes
42 int mins[3]; // for frustom culling
47 int cluster; // -1 = opaque cluster (do I still store these?)
50 int mins[3]; // for frustum culling
80 int lightmapX, lightmapY;
81 int lightmapWidth, lightmapHeight;
83 vec3_t lightmapOrigin;
84 vec3_t lightmapVecs[3]; // for patches, [0] and [1] are lodbounds
91 int planeNum; // positive plane side faces out of the leaf
98 int shaderNum; // the shader that determines the contents flags
109 const int MAX_MAP_VISIBILITY = 0x200000;
110 const int MAX_MAP_NODES = 0x20000;
111 const int MAX_MAP_PLANES = 0x20000;
112 const int MAX_MAP_LEAFS = 0x20000;
114 extern int numVisBytes;
116 extern int numplanes;
118 extern int numDrawVerts;
119 extern int numDrawSurfaces;
120 extern int numleafsurfaces;
121 extern int numbrushes;
122 extern int numbrushsides;
123 extern int numleafbrushes;
125 extern dnode_t *dnodes;
126 extern dplane_t *dplanes;
127 extern dleaf_t *dleafs;
128 extern byte *visBytes;
129 extern qdrawVert_t *drawVerts;
130 extern dsurface_t *drawSurfaces;
131 extern int *dleafsurfaces;
132 extern dbrush_t *dbrushes;
133 extern dbrushside_t *dbrushsides;
134 extern int *dleafbrushes;
136 bool LoadBSPFile( const char *filename );