UFO: Alien Invasion
Loading...
Searching...
No Matches
trace.cpp 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.cpp:

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.cpp.

Function Documentation

◆ CloseTracingNodes()

void CloseTracingNodes ( void )
See also
MakeTnodes

Definition at line 65 of file trace.cpp.

References curTile, and Mem_Free.

Referenced by LightWorld(), and MakeTracingNodes().

◆ 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.cpp.

References CloseTracingNodes(), curTile, dBspModel_t::headnode, i, LEVEL_ACTORCLIP, LEVEL_LIGHTCLIP, LEVEL_MAX, Mem_AllocTypeN, dBspModel_t::numfaces, and TR_BuildTracingNode_r().

Referenced by DoRouting(), and LightWorld().