Quake-III-Arena

Quake III Arena GPL Source Release
Log | Files | Refs

l_bsp_q3.h (2655B)


      1 /*
      2 ===========================================================================
      3 Copyright (C) 1999-2005 Id Software, Inc.
      4 
      5 This file is part of Quake III Arena source code.
      6 
      7 Quake III Arena source code is free software; you can redistribute it
      8 and/or modify it under the terms of the GNU General Public License as
      9 published by the Free Software Foundation; either version 2 of the License,
     10 or (at your option) any later version.
     11 
     12 Quake III Arena source code is distributed in the hope that it will be
     13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 GNU General Public License for more details.
     16 
     17 You should have received a copy of the GNU General Public License
     18 along with Foobar; if not, write to the Free Software
     19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
     20 ===========================================================================
     21 */
     22 
     23 #include "q3files.h"
     24 //#include "surfaceflags.h"
     25 
     26 extern	int				q3_nummodels;
     27 extern	q3_dmodel_t		*q3_dmodels;//[MAX_MAP_MODELS];
     28 
     29 extern	int				q3_numShaders;
     30 extern	q3_dshader_t	*q3_dshaders;//[Q3_MAX_MAP_SHADERS];
     31 
     32 extern	int				q3_entdatasize;
     33 extern	char			*q3_dentdata;//[Q3_MAX_MAP_ENTSTRING];
     34 
     35 extern	int				q3_numleafs;
     36 extern	q3_dleaf_t		*q3_dleafs;//[Q3_MAX_MAP_LEAFS];
     37 
     38 extern	int				q3_numplanes;
     39 extern	q3_dplane_t		*q3_dplanes;//[Q3_MAX_MAP_PLANES];
     40 
     41 extern	int				q3_numnodes;
     42 extern	q3_dnode_t		*q3_dnodes;//[Q3_MAX_MAP_NODES];
     43 
     44 extern	int				q3_numleafsurfaces;
     45 extern	int				*q3_dleafsurfaces;//[Q3_MAX_MAP_LEAFFACES];
     46 
     47 extern	int				q3_numleafbrushes;
     48 extern	int				*q3_dleafbrushes;//[Q3_MAX_MAP_LEAFBRUSHES];
     49 
     50 extern	int				q3_numbrushes;
     51 extern	q3_dbrush_t		*q3_dbrushes;//[Q3_MAX_MAP_BRUSHES];
     52 
     53 extern	int				q3_numbrushsides;
     54 extern	q3_dbrushside_t	*q3_dbrushsides;//[Q3_MAX_MAP_BRUSHSIDES];
     55 
     56 extern	int				q3_numLightBytes;
     57 extern	byte			*q3_lightBytes;//[Q3_MAX_MAP_LIGHTING];
     58 
     59 extern	int				q3_numGridPoints;
     60 extern	byte			*q3_gridData;//[Q3_MAX_MAP_LIGHTGRID];
     61 
     62 extern	int				q3_numVisBytes;
     63 extern	byte			*q3_visBytes;//[Q3_MAX_MAP_VISIBILITY];
     64 
     65 extern	int				q3_numDrawVerts;
     66 extern	q3_drawVert_t	*q3_drawVerts;//[Q3_MAX_MAP_DRAW_VERTS];
     67 
     68 extern	int				q3_numDrawIndexes;
     69 extern	int				*q3_drawIndexes;//[Q3_MAX_MAP_DRAW_INDEXES];
     70 
     71 extern	int				q3_numDrawSurfaces;
     72 extern	q3_dsurface_t	*q3_drawSurfaces;//[Q3_MAX_MAP_DRAW_SURFS];
     73 
     74 extern	int				q3_numFogs;
     75 extern	q3_dfog_t		*q3_dfogs;//[Q3_MAX_MAP_FOGS];
     76 
     77 extern	char			q3_dbrushsidetextured[Q3_MAX_MAP_BRUSHSIDES];
     78 
     79 void Q3_LoadBSPFile(struct quakefile_s *qf);
     80 void Q3_FreeMaxBSP(void);
     81 void Q3_ParseEntities (void);