The major lighting operation is a point to point visibility test, performed by recursive subdivision of the line by the BSP tree. More...
#include "shared.h"
#include "../bsp.h"
#include "bspfile.h"
Go to the source code of this file.
Functions | |
void | MakeTracingNodes (int levels) |
Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibility and pathfinding checks. | |
void | CloseTracingNodes (void) |
The major lighting operation is a point to point visibility test, performed by recursive subdivision of the line by the BSP tree.
Definition in file trace.c.
void CloseTracingNodes | ( | void | ) |
Definition at line 73 of file trace.c.
References curTile, Mem_Free, and dMapTile_t::tnodes.
Referenced by LightWorld(), and MakeTracingNodes().
void MakeTracingNodes | ( | int | levels | ) |
Use the bsp node structure to reconstruct efficient tracing structures that are used for fast visibility and pathfinding checks.
Definition at line 38 of file trace.c.
References CloseTracingNodes(), curTile, dBspModel_t::headnode, i, LEVEL_ACTORCLIP, LEVEL_LIGHTCLIP, LEVEL_MAX, Mem_Alloc, dMapTile_t::models, dBspModel_t::numfaces, dMapTile_t::numnodes, dMapTile_t::numtheads, dMapTile_t::thead, dMapTile_t::theadlevel, dMapTile_t::tnodes, and TR_BuildTracingNode_r().
Referenced by DoRouting(), and LightWorld().