Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

l_bsp_q2.h

Go to the documentation of this file.
00001 /*
00002 ===========================================================================
00003 Copyright (C) 1999-2005 Id Software, Inc.
00004 
00005 This file is part of Quake III Arena source code.
00006 
00007 Quake III Arena source code is free software; you can redistribute it
00008 and/or modify it under the terms of the GNU General Public License as
00009 published by the Free Software Foundation; either version 2 of the License,
00010 or (at your option) any later version.
00011 
00012 Quake III Arena source code is distributed in the hope that it will be
00013 useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You should have received a copy of the GNU General Public License
00018 along with Foobar; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020 ===========================================================================
00021 */
00022 
00023 #ifndef ME
00024 #define ME
00025 #endif //ME
00026 
00027 extern  int             nummodels;
00028 extern  dmodel_t            *dmodels;//[MAX_MAP_MODELS];
00029 
00030 extern  int             visdatasize;
00031 extern  byte                *dvisdata;//[MAX_MAP_VISIBILITY];
00032 extern  dvis_t          *dvis;
00033 
00034 extern  int             lightdatasize;
00035 extern  byte                *dlightdata;//[MAX_MAP_LIGHTING];
00036 
00037 extern  int             entdatasize;
00038 extern  char                *dentdata;//[MAX_MAP_ENTSTRING];
00039 
00040 extern  int             numleafs;
00041 extern  dleaf_t         *dleafs;//[MAX_MAP_LEAFS];
00042 
00043 extern  int             numplanes;
00044 extern  dplane_t            *dplanes;//[MAX_MAP_PLANES];
00045 
00046 extern  int             numvertexes;
00047 extern  dvertex_t       *dvertexes;//[MAX_MAP_VERTS];
00048 
00049 extern  int             numnodes;
00050 extern  dnode_t         *dnodes;//[MAX_MAP_NODES];
00051 
00052 extern  int             numtexinfo;
00053 extern  texinfo_t       texinfo[MAX_MAP_TEXINFO];
00054 
00055 extern  int             numfaces;
00056 extern  dface_t         *dfaces;//[MAX_MAP_FACES];
00057 
00058 extern  int             numedges;
00059 extern  dedge_t         *dedges;//[MAX_MAP_EDGES];
00060 
00061 extern  int             numleaffaces;
00062 extern  unsigned short  *dleaffaces;//[MAX_MAP_LEAFFACES];
00063 
00064 extern  int             numleafbrushes;
00065 extern  unsigned short  *dleafbrushes;//[MAX_MAP_LEAFBRUSHES];
00066 
00067 extern  int             numsurfedges;
00068 extern  int             *dsurfedges;//[MAX_MAP_SURFEDGES];
00069 
00070 extern  int             numareas;
00071 extern  darea_t         *dareas;//[MAX_MAP_AREAS];
00072 
00073 extern  int             numareaportals;
00074 extern  dareaportal_t   *dareaportals;//[MAX_MAP_AREAPORTALS];
00075 
00076 extern  int             numbrushes;
00077 extern  dbrush_t            *dbrushes;//[MAX_MAP_BRUSHES];
00078 
00079 extern  int             numbrushsides;
00080 extern  dbrushside_t    *dbrushsides;//[MAX_MAP_BRUSHSIDES];
00081 
00082 extern  byte        dpop[256];
00083 
00084 extern  char brushsidetextured[MAX_MAP_BRUSHSIDES];
00085 
00086 void Q2_AllocMaxBSP(void);
00087 void Q2_FreeMaxBSP(void);
00088 
00089 void Q2_DecompressVis(byte *in, byte *decompressed);
00090 int Q2_CompressVis(byte *vis, byte *dest);
00091 
00092 void Q2_LoadBSPFile(char *filename, int offset, int length);
00093 void Q2_LoadBSPFileTexinfo(char *filename); // just for qdata
00094 void Q2_WriteBSPFile(char *filename);
00095 void Q2_PrintBSPFileSizes(void);
00096 void Q2_ParseEntities(void);
00097 void Q2_UnparseEntities(void);
00098 

Generated on Thu Aug 25 12:37:16 2005 for Quake III Arena by  doxygen 1.3.9.1