trace.c File Reference

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"
Include dependency graph for trace.c:

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)

Detailed Description

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.


Function Documentation

void CloseTracingNodes ( void   ) 
See also:
MakeTnodes

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.

Note:
curTile->tnodes is expected to have enough memory malloc'ed for the function to work.
See also:
BuildTracingNode_r

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


Generated by  doxygen 1.6.2