l_bsp_q3.h 2.6 KB

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