#include <malloc.h>
#include "l_cmd.h"
#include "l_math.h"
#include "l_poly.h"
#include "l_threads.h"
#include "../botlib/l_script.h"
#include "l_bsp_ent.h"
#include "q2files.h"
#include "l_mem.h"
#include "l_utils.h"
#include "l_log.h"
#include "l_qfiles.h"
Include dependency graph for qbsp.h:

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

Go to the source code of this file.
|
|
|
|
|
Definition at line 40 of file qbsp.h. Referenced by main(), and WriteMapFileSafe(). |
|
|
Definition at line 48 of file qbsp.h. Referenced by BuildFaceTree_r(), and MakeNodePortal(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 272 of file qbsp.h. Referenced by WriteMapFileSafe(). |
|
|
|
|
|
Definition at line 275 of file qbsp.h. Referenced by WriteMapBrush(). |
|
|
|
|
|
Definition at line 49 of file qbsp.h. Referenced by AAS_CreateCurveBrushes(), AAS_FixMapBrush(), AAS_HashVec(), AAS_MakeBrushWindings(), BaseWindingForPlane(), CheckBSPBrush(), CheckWinding(), MakeBrushWindings(), MakeTreePortals_r(), SplitBrush(), and TH_HashVec(). |
|
|
|
|
|
Definition at line 237 of file qbsp.h. Referenced by Q2_ResetMapLoading(), Q3_ResetMapLoading(), ResetMapLoading(), and Sin_ResetMapLoading(). |
|
|
Definition at line 238 of file qbsp.h. Referenced by ResetMapLoading(). |
|
|
Definition at line 236 of file qbsp.h. Referenced by ResetMapLoading(). |
|
|
Definition at line 239 of file qbsp.h. Referenced by ResetMapLoading(). |
|
|
|
|
|
Definition at line 53 of file qbsp.h. Referenced by FaceFromSuperverts(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 52 of file qbsp.h. Referenced by CreateVisPortals_r(), NumberLeafs_r(), Portal_EntityFlood(), Portal_Passable(), and WritePortalFile_r(). |
|
|
Definition at line 403 of file qbsp.h. Referenced by QuickTestBrushToPlanenum(), and TestBrushToPlanenum(). |
|
|
|
|
|
|
|
|
Definition at line 402 of file qbsp.h. Referenced by QuickTestBrushToPlanenum(), and TestBrushToPlanenum(). |
|
|
Definition at line 58 of file qbsp.h. Referenced by AAS_AddMapBrushSide(). |
|
|
|
|
|
|
|
|
Definition at line 59 of file qbsp.h. Referenced by AAS_CreateCurveBrushes(), AAS_SetTexinfo(), and Q3_BSPBrushToMapBrush(). |
|
|
Definition at line 57 of file qbsp.h. Referenced by AAS_CreateCurveBrushes(). |
|
|
|
|
|
Definition at line 51 of file qbsp.h. Referenced by TryMergeBrushes(). |
|
|
|
|
|
|
Referenced by ResetMapLoading(), VL_SplitLightVolume(), and VS_SplitLightVolume(). |
|
|
|
|
Definition at line 336 of file map.c. References b, c_boxbevels, c_edgebevels, side_s::contents, CrossProduct(), d, DotProduct, Error(), FindFloatPlane(), side_s::flags, i, j, k, l, side_s::lightinfo, mapbrush_t, mapplanes, mapbrush_s::maxs, mapbrush_s::mins, plane_t::normal, nummapbrushsides, winding_t::numpoints, mapbrush_s::numsides, order, mapbrush_s::original_sides, winding_t::p, PlaneEqual(), side_s::planenum, s, side_brushtextures, side_newrefs, side_t, SnapVector, side_s::texinfo, vec3_t, VectorClear, VectorNormalize(), VectorSubtract, w, and side_s::winding. 00337 {
00338 int axis, dir;
00339 int i, j, k, l, order;
00340 side_t sidetemp;
00341 brush_texture_t tdtemp;
00342 #ifdef SIN
00343 textureref_t trtemp;
00344 #endif
00345 side_t *s, *s2;
00346 vec3_t normal;
00347 float dist;
00348 winding_t *w, *w2;
00349 vec3_t vec, vec2;
00350 float d;
00351
00352 //
00353 // add the axial planes
00354 //
00355 order = 0;
00356 for (axis=0 ; axis <3 ; axis++)
00357 {
00358 for (dir=-1 ; dir <= 1 ; dir+=2, order++)
00359 {
00360 // see if the plane is allready present
00361 for (i=0, s=b->original_sides ; i<b->numsides ; i++,s++)
00362 {
00363 if (mapplanes[s->planenum].normal[axis] == dir)
00364 break;
00365 }
00366
00367 if (i == b->numsides)
00368 { // add a new side
00369 if (nummapbrushsides == MAX_MAP_BRUSHSIDES)
00370 Error ("MAX_MAP_BRUSHSIDES");
00371 nummapbrushsides++;
00372 b->numsides++;
00373 VectorClear (normal);
00374 normal[axis] = dir;
00375 if (dir == 1)
00376 dist = b->maxs[axis];
00377 else
00378 dist = -b->mins[axis];
00379 s->planenum = FindFloatPlane (normal, dist);
00380 s->texinfo = b->original_sides[0].texinfo;
00381 #ifdef SIN
00382 s->lightinfo = b->original_sides[0].lightinfo;
00383 #endif
00384 s->contents = b->original_sides[0].contents;
00385 s->flags |= SFL_BEVEL;
00386 c_boxbevels++;
00387 }
00388
00389 // if the plane is not in it canonical order, swap it
00390 if (i != order)
00391 {
00392 sidetemp = b->original_sides[order];
00393 b->original_sides[order] = b->original_sides[i];
00394 b->original_sides[i] = sidetemp;
00395
00396 j = b->original_sides - brushsides;
00397 tdtemp = side_brushtextures[j+order];
00398 side_brushtextures[j+order] = side_brushtextures[j+i];
00399 side_brushtextures[j+i] = tdtemp;
00400
00401 #ifdef SIN
00402 trtemp = side_newrefs[j |