levels.c File Reference

#include "bsp.h"
Include dependency graph for levels.c:

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

Detailed Description

Definition in file levels.c.


Define Documentation

#define SPLIT_BRUSH_SIZE   256

Definition at line 127 of file levels.c.

Referenced by ConstructLevelNodes_r().


Function Documentation

static int32_t BuildNodeChildren ( const int  n[3]  )  [static]
static int32_t ConstructLevelNodes_r ( const int  levelnum,
const vec3_t  cmins,
const vec3_t  cmaxs 
) [static]
void PopInfo ( void   ) 
void ProcessLevel ( unsigned int  levelnum  ) 

process brushes with that level mask

Parameters:
[in] levelnum is the level mask
Note:
levelnum 256: weaponclip-level 257: actorclip-level 258: stepon-level 259: tracing structure
See also:
ProcessWorldModel
ConstructLevelNodes_r

Note:
Should be reentrant as each thread has a unique levelnum at any given time
Todo:
Check what happens if two threads do the memcpy

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   ) 

Variable Documentation

int brush_end

Definition at line 29 of file levels.c.

Referenced by ConstructLevelNodes_r(), and ProcessWorldModel().

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().

const vec3_t v_epsilon = { 1, 1, 1 }

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().


Generated by  doxygen 1.6.2