This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
|
|
Definition at line 195 of file l_bsp_q1.h. |
|
|
Definition at line 193 of file l_bsp_q1.h. |
|
|
Definition at line 194 of file l_bsp_q1.h. |
|
|
Definition at line 192 of file l_bsp_q1.h. |
|
|
Definition at line 49 of file l_bsp_q1.h. |
|
|
Definition at line 50 of file l_bsp_q1.h. |
|
|
Definition at line 175 of file l_bsp_q1.h. |
|
|
Definition at line 101 of file l_bsp_q1.h. |
|
|
Definition at line 197 of file l_bsp_q1.h. |
|
|
Definition at line 122 of file l_bsp_q1.h. |
|
|
Definition at line 123 of file l_bsp_q1.h. |
|
|
Definition at line 124 of file l_bsp_q1.h. |
|
|
Definition at line 117 of file l_bsp_q1.h. |
|
|
Definition at line 118 of file l_bsp_q1.h. |
|
|
Definition at line 119 of file l_bsp_q1.h. |
|
|
Definition at line 55 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 135 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 139 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 140 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 138 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 136 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 137 of file l_bsp_q1.h. Referenced by Q1_CreateBrushes_r(), and Q1_SolidTree_r(). |
|
|
Definition at line 78 of file l_bsp_q1.h. |
|
|
Definition at line 71 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 74 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 62 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 69 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 72 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 70 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 73 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 76 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 67 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 63 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 75 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 68 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 64 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 65 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 66 of file l_bsp_q1.h. Referenced by Q1_LoadBSPFile(), and Q1_WriteBSPFile(). |
|
|
Definition at line 29 of file l_bsp_q1.h. |
|
|
Definition at line 35 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 41 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 30 of file l_bsp_q1.h. |
|
|
Definition at line 31 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 38 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 26 of file l_bsp_q1.h. |
|
|
Definition at line 36 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 44 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 39 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 43 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 28 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 34 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 33 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 42 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 40 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 37 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 45 of file l_bsp_q1.h. Referenced by Q1_AllocMaxBSP(), and Q1_LoadBSPFile(). |
|
|
Definition at line 166 of file l_bsp_q1.h. |
|
|
Referenced by Q1_TextureBrushes(). |
|
|
Referenced by Q1_AllocMaxBSP(), Q1_LoadBSPFile(), Q1_PrintBSPFileSizes(), and Q1_WriteBSPFile(). |
|
Here is the call graph for this function:

|
|
Definition at line 151 of file l_bsp_q1.c. References FreeMemory(), Log_Print(), PrintMemorySize(), q1_allocatedbspmem, q1_dclipnodes, q1_dedges, q1_dentdata, q1_dfaces, q1_dleafs, q1_dlightdata, q1_dmarksurfaces, q1_dmodels, q1_dnodes, q1_dplanes, q1_dsurfedges, q1_dtexdata, q1_dvertexes, q1_dvisdata, q1_entdatasize, q1_lightdatasize, q1_numclipnodes, q1_numedges, q1_numfaces, q1_numleafs, q1_nummarksurfaces, q1_nummodels, q1_numnodes, q1_numplanes, q1_numsurfedges, q1_numtexinfo, q1_numvertexes, q1_texdatasize, q1_texinfo, and q1_visdatasize. Referenced by LoadMapFromBSP(). 00152 {
00153 //models
00154 q1_nummodels = 0;
00155 FreeMemory(q1_dmodels);
00156 q1_dmodels = NULL;
00157 //visibility
00158 q1_visdatasize = 0;
00159 FreeMemory(q1_dvisdata);
00160 q1_dvisdata = NULL;
00161 //light data
00162 q1_lightdatasize = 0;
00163 FreeMemory(q1_dlightdata);
00164 q1_dlightdata = NULL;
00165 //texture data
00166 q1_texdatasize = 0;
00167 FreeMemory(q1_dtexdata);
00168 q1_dtexdata = NULL;
00169 //entities
00170 q1_entdatasize = 0;
00171 FreeMemory(q1_dentdata);
00172 q1_dentdata = NULL;
00173 //leaves
00174 q1_numleafs = 0;
00175 FreeMemory(q1_dleafs);
00176 q1_dleafs = NULL;
00177 //planes
00178 q1_numplanes = 0;
00179 FreeMemory(q1_dplanes);
00180 q1_dplanes = NULL;
00181 //vertexes
00182 q1_numvertexes = 0;
00183 FreeMemory(q1_dvertexes);
00184 q1_dvertexes = NULL;
00185 //nodes
00186 q1_numnodes = 0;
00187 FreeMemory(q1_dnodes);
00188 q1_dnodes = NULL;
00189 //texture info
00190 q1_numtexinfo = 0;
00191 FreeMemory(q1_texinfo);
00192 q1_texinfo = NULL;
00193 //faces
00194 q1_numfaces = 0;
00195 FreeMemory(q1_dfaces);
00196 q1_dfaces = NULL;
00197 //clip nodes
00198 q1_numclipnodes = 0;
00199 FreeMemory(q1_dclipnodes);
00200 q1_dclipnodes = NULL;
00201 //edges
00202 q1_numedges = 0;
00203 FreeMemory(q1_dedges);
00204 q1_dedges = NULL;
00205 //mark surfaces
00206 q1_nummarksurfaces = 0;
00207 FreeMemory(q1_dmarksurfaces);
00208 q1_dmarksurfaces = NULL;
00209 //surface edges
00210 q1_numsurfedges = 0;
00211 FreeMemory(q1_dsurfedges);
00212 q1_dsurfedges = NULL;
00213 //
00214 Log_Print("freed ");
00215 PrintMemorySize(q1_allocatedbspmem);
00216 Log_Print(" of BSP memory\n");
00217 q1_allocatedbspmem = 0;
00218 } //end of the function Q1_FreeMaxBSP
|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 417 of file l_bsp_q1.c. References Error(), FreeMemory(), i, length(), LittleLong(), LoadFile(), offset, Q1_BSPVERSION, Q1_CopyLump(), q1_dclipnodes, q1_dedges, q1_dentdata, q1_dfaces, q1_dleafs, q1_dlightdata, q1_dmarksurfaces, q1_dmodels, q1_dnodes, q1_dplanes, q1_dsurfedges, q1_dtexdata, q1_dvertexes, q1_dvisdata, q1_entdatasize, q1_fileLength, q1_header, q1_lightdatasize, Q1_LUMP_CLIPNODES, Q1_LUMP_EDGES, Q1_LUMP_ENTITIES, Q1_LUMP_FACES, Q1_LUMP_LEAFS, Q1_LUMP_LIGHTING, Q1_LUMP_MARKSURFACES, Q1_LUMP_MODELS, Q1_LUMP_NODES, Q1_LUMP_PLANES, Q1_LUMP_SURFEDGES, Q1_LUMP_TEXINFO, Q1_LUMP_TEXTURES, Q1_LUMP_VERTEXES, Q1_LUMP_VISIBILITY, Q1_MAX_MAP_CLIPNODES, Q1_MAX_MAP_EDGES, Q1_MAX_MAP_ENTSTRING, Q1_MAX_MAP_FACES, Q1_MAX_MAP_LEAFS, Q1_MAX_MAP_LIGHTING, Q1_MAX_MAP_MARKSURFACES, Q1_MAX_MAP_MIPTEX, Q1_MAX_MAP_MODELS, Q1_MAX_MAP_NODES, Q1_MAX_MAP_PLANES, Q1_MAX_MAP_SURFEDGES, Q1_MAX_MAP_TEXINFO, Q1_MAX_MAP_VERTS, Q1_MAX_MAP_VISIBILITY, q1_numclipnodes, q1_numedges, q1_numfaces, q1_numleafs, q1_nummarksurfaces, q1_nummodels, q1_numnodes, q1_numplanes, q1_numsurfedges, q1_numtexinfo, q1_numvertexes, Q1_SwapBSPFile(), q1_texdatasize, q1_texinfo, q1_texinfo_t, q1_visdatasize, and q1_dheader_t::version. Referenced by Q1_LoadMapFromBSP(). 00418 {
00419 int i;
00420
00421 //
00422 // load the file header
00423 //
00424 q1_fileLength = LoadFile(filename, (void **)&q1_header, offset, length);
00425
00426 // swap the header
00427 for (i=0 ; i< sizeof(q1_dheader_t)/4 ; i++)
00428 ((int *)q1_header)[i] = LittleLong ( ((int *)q1_header)[i]);
00429
00430 if (q1_header->version != Q1_BSPVERSION)
00431 Error ("%s is version %i, not %i", filename, i, Q1_BSPVERSION);
00432
00433 q1_nummodels = Q1_CopyLump (Q1_LUMP_MODELS, q1_dmodels, sizeof(q1_dmodel_t), Q1_MAX_MAP_MODELS );
00434 q1_numvertexes = Q1_CopyLump (Q1_LUMP_VERTEXES, q1_dvertexes, sizeof(q1_dvertex_t), Q1_MAX_MAP_VERTS );
00435 q1_numplanes = Q1_CopyLump (Q1_LUMP_PLANES, q1_dplanes, sizeof(q1_dplane_t), Q1_MAX_MAP_PLANES );
00436 q1_numleafs = Q1_CopyLump (Q1_LUMP_LEAFS, q1_dleafs, sizeof(q1_dleaf_t), Q1_MAX_MAP_LEAFS );
00437 q1_numnodes = Q1_CopyLump (Q1_LUMP_NODES, q1_dnodes, sizeof(q1_dnode_t), Q1_MAX_MAP_NODES );
00438 q1_numtexinfo = Q1_CopyLump (Q1_LUMP_TEXINFO, q1_texinfo, sizeof(q1_texinfo_t), Q1_MAX_MAP_TEXINFO );
00439 q1_numclipnodes = Q1_CopyLump (Q1_LUMP_CLIPNODES, q1_dclipnodes, sizeof(q1_dclipnode_t), Q1_MAX_MAP_CLIPNODES );
00440 q1_numfaces = Q1_CopyLump (Q1_LUMP_FACES, q1_dfaces, sizeof(q1_dface_t), Q1_MAX_MAP_FACES );
00441 q1_nummarksurfaces = Q1_CopyLump (Q1_LUMP_MARKSURFACES, q1_dmarksurfaces, sizeof(q1_dmarksurfaces[0]), Q1_MAX_MAP_MARKSURFACES );
00442 q1_numsurfedges = Q1_CopyLump (Q1_LUMP_SURFEDGES, q1_dsurfedges, sizeof(q1_dsurfedges[0]), Q1_MAX_MAP_SURFEDGES );
00443 q1_numedges = Q1_CopyLump (Q1_LUMP_EDGES, q1_dedges, sizeof(q1_dedge_t), Q1_MAX_MAP_EDGES );
00444
00445 q1_texdatasize = Q1_CopyLump (Q1_LUMP_TEXTURES, q1_dtexdata, 1, Q1_MAX_MAP_MIPTEX );
00446 q1_visdatasize = Q1_CopyLump (Q1_LUMP_VISIBILITY, q1_dvisdata, 1, Q1_MAX_MAP_VISIBILITY );
00447 q1_lightdatasize = Q1_CopyLump (Q1_LUMP_LIGHTING, q1_dlightdata, 1, Q1_MAX_MAP_LIGHTING );
00448 q1_entdatasize = Q1_CopyLump (Q1_LUMP_ENTITIES, q1_dentdata, 1, Q1_MAX_MAP_ENTSTRING );
00449
00450 FreeMemory(q1_header); // everything has been copied out
00451
00452 //
00453 // swap everything
00454 //
00455 Q1_SwapBSPFile (false);
00456 }
|
Here is the call graph for this function:

|
|
Definition at line 563 of file l_bsp_q1.c. References FreeScript(), LoadScriptMemory(), num_entities, ParseEntity(), q1_dentdata, q1_entdatasize, SCFL_NOSTRINGESCAPECHARS, SCFL_NOSTRINGWHITESPACES, script, and SetScriptFlags(). Referenced by Q1_LoadMapFromBSP(). 00564 {
00565 script_t *script;
00566
00567 num_entities = 0;
00568 script = LoadScriptMemory(q1_dentdata, q1_entdatasize, "*Quake1 bsp file");
00569 SetScriptFlags(script, SCFL_NOSTRINGWHITESPACES |
00570 SCFL_NOSTRINGESCAPECHARS);
00571
00572 while(ParseEntity(script))
00573 {
00574 } //end while
00575
00576 FreeScript(script);
00577 } //end of the function Q1_ParseEntities
|
Here is the call graph for this function:

|
|
Definition at line 524 of file l_bsp_q1.c. References nummiptex, printf(), q1_dmarksurfaces, q1_dtexdata, q1_entdatasize, q1_lightdatasize, q1_numclipnodes, q1_numedges, q1_numfaces, q1_numleafs, q1_nummarksurfaces, q1_numnodes, q1_numplanes, q1_numsurfedges, q1_numtexinfo, q1_numvertexes, q1_texdatasize, q1_texinfo_t, and q1_visdatasize. 00525 {
00526 printf ("%5i planes %6i\n"
00527 ,q1_numplanes, (int)(q1_numplanes*sizeof(q1_dplane_t)));
00528 printf ("%5i vertexes %6i\n"
00529 ,q1_numvertexes, (int)(q1_numvertexes*sizeof(q1_dvertex_t)));
00530 printf ("%5i nodes %6i\n"
00531 ,q1_numnodes, (int)(q1_numnodes*sizeof(q1_dnode_t)));
00532 printf ("%5i texinfo %6i\n"
00533 ,q1_numtexinfo, (int)(q1_numtexinfo*sizeof(q1_texinfo_t)));
00534 printf ("%5i faces %6i\n"
00535 ,q1_numfaces, (int)(q1_numfaces*sizeof(q1_dface_t)));
00536 printf ("%5i clipnodes %6i\n"
00537 ,q1_numclipnodes, (int)(q1_numclipnodes*sizeof(q1_dclipnode_t)));
00538 printf ("%5i leafs %6i\n"
00539 ,q1_numleafs, (int)(q1_numleafs*sizeof(q1_dleaf_t)));
00540 printf ("%5i marksurfaces %6i\n"
00541 ,q1_nummarksurfaces, (int)(q1_nummarksurfaces*sizeof(q1_dmarksurfaces[0])));
00542 printf ("%5i surfedges %6i\n"
00543 ,q1_numsurfedges, (int)(q1_numsurfedges*sizeof(q1_dmarksurfaces[0])));
00544 printf ("%5i edges %6i\n"
00545 ,q1_numedges, (int)(q1_numedges*sizeof(q1_dedge_t)));
00546 if (!q1_texdatasize)
00547 printf (" 0 textures 0\n");
00548 else
00549 printf ("%5i textures %6i\n",((q1_dmiptexlump_t*)q1_dtexdata)->nummiptex, q1_texdatasize);
00550 printf (" lightdata %6i\n", q1_lightdatasize);
00551 printf (" visdata %6i\n", q1_visdatasize);
00552 printf (" entdata %6i\n", q1_entdatasize);
00553 } //end of the function Q1_PrintBSPFileSizes
|
Here is the call graph for this function:

|
|
Definition at line 587 of file l_bsp_q1.c. References entities, epair_t, entity_t::epairs, Error(), i, epair_s::key, line, epair_s::next, q1_entdatasize, sprintf(), strcat(), strlen(), and epair_s::value. |