#include "bsp.h"
Go to the source code of this file.
Defines | |
#define | SPLIT_BRUSH_SIZE 256 |
Functions | |
void | PushInfo (void) |
void | PopInfo (void) |
static int32_t | BuildNodeChildren (const int n[3]) |
static int32_t | ConstructLevelNodes_r (const int levelnum, const vec3_t cmins, const vec3_t cmaxs) |
void | ProcessLevel (unsigned int levelnum) |
process brushes with that level mask | |
Variables | |
const vec3_t | v_epsilon = { 1, 1, 1 } |
int | brush_start |
int | brush_end |
vec3_t | worldMins |
vec3_t | worldMaxs |
static int | oldmodels |
static int | oldleafs |
static int | oldleafbrushes |
static int | oldplanes |
static int | oldvertexes |
static int | oldnormals |
static int | oldnodes |
static int | oldtexinfo |
static int | oldfaces |
static int | oldedges |
static int | oldsurfedges |
Definition in file levels.c.
#define SPLIT_BRUSH_SIZE 256 |
Definition at line 127 of file levels.c.
Referenced by ConstructLevelNodes_r().
static int32_t BuildNodeChildren | ( | const int | n[3] | ) | [static] |
[in] | n | The node nums |
Definition at line 69 of file levels.c.
References AddPointToBounds(), dBspNode_t::children, ClearBounds(), curTile, dBspNode_t::firstface, i, LEAFNODE, dBspNode_t::maxs, dBspNode_t::mins, dMapTile_t::nodes, dBspNode_t::numfaces, dMapTile_t::numnodes, dBspNode_t::planenum, PLANENUM_LEAF, VectorCopy, VERB_DUMP, Verb_Printf(), worldMaxs, and worldMins.
Referenced by ConstructLevelNodes_r().
static int32_t ConstructLevelNodes_r | ( | const int | levelnum, | |
const vec3_t | cmins, | |||
const vec3_t | cmaxs | |||
) | [static] |
Definition at line 133 of file levels.c.
References BeginModel(), brush_end, brush_start, BrushBSP(), BuildNodeChildren(), ChopBrushes(), config, entity_num, FixTjuncs(), FreeTree(), tree_t::headnode, LEAFNODE, MakeBspBrushList(), MakeFaces(), MakeTreePortals(), MapBrushesBounds(), MarkVisibleSides(), node_s::maxs, node_s::mins, PruneNodes(), SPLIT_BRUSH_SIZE, v_epsilon, VectorAdd, VectorCopy, VectorSubtract, VERB_DUMP, Verb_Printf(), and WriteBSP().
Referenced by ProcessLevel().
void PopInfo | ( | void | ) |
Definition at line 50 of file levels.c.
References curTile, dMapTile_t::numedges, dMapTile_t::numfaces, dMapTile_t::numleafbrushes, dMapTile_t::numleafs, dMapTile_t::nummodels, dMapTile_t::numnodes, dMapTile_t::numnormals, dMapTile_t::numplanes, dMapTile_t::numsurfedges, dMapTile_t::numtexinfo, dMapTile_t::numvertexes, oldedges, oldfaces, oldleafbrushes, oldleafs, oldmodels, oldnodes, oldnormals, oldplanes, oldsurfedges, oldtexinfo, and oldvertexes.
Referenced by DoRouting().
void ProcessLevel | ( | unsigned int | levelnum | ) |
process brushes with that level mask
[in] | levelnum | is the level mask |
Definition at line 233 of file levels.c.
References config, ConstructLevelNodes_r(), curTile, dBspModel_t::firstface, dBspModel_t::headnode, mapbrushes, MAX_WORLD_WIDTH, dMapTile_t::models, dBspModel_t::numfaces, dMapTile_t::numfaces, nummapbrushes, dMapTile_t::nummodels, VERB_EXTRA, and Verb_Printf().
Referenced by ProcessWorldModel().
void PushInfo | ( | void | ) |
Definition at line 35 of file levels.c.
References curTile, dMapTile_t::numedges, dMapTile_t::numfaces, dMapTile_t::numleafbrushes, dMapTile_t::numleafs, dMapTile_t::nummodels, dMapTile_t::numnodes, dMapTile_t::numnormals, dMapTile_t::numplanes, dMapTile_t::numsurfedges, dMapTile_t::numtexinfo, dMapTile_t::numvertexes, oldedges, oldfaces, oldleafbrushes, oldleafs, oldmodels, oldnodes, oldnormals, oldplanes, oldsurfedges, oldtexinfo, and oldvertexes.
Referenced by DoRouting().
int brush_end |
Definition at line 29 of file levels.c.
Referenced by ConstructLevelNodes_r(), and ProcessWorldModel().
int brush_start |
Definition at line 29 of file levels.c.
Referenced by ConstructLevelNodes_r(), and ProcessWorldModel().
int oldedges [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldfaces [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), PushInfo(), and WriteBSP().
int oldleafbrushes [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldleafs [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldmodels [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldnodes [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldnormals [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldplanes [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldsurfedges [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldtexinfo [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
int oldvertexes [static] |
Definition at line 33 of file levels.c.
Referenced by PopInfo(), and PushInfo().
Definition at line 28 of file levels.c.
Referenced by ConstructLevelNodes_r().
Definition at line 31 of file levels.c.
Referenced by BuildNodeChildren(), and ProcessWorldModel().
Definition at line 31 of file levels.c.
Referenced by BuildNodeChildren(), and ProcessWorldModel().