UFO: Alien Invasion
node_t Struct Reference

#include <bsp.h>

Collaboration diagram for node_t:
Collaboration graph

Data Fields

int32_t planenum
 
struct node_s * parent
 
AABB nBox
 
bspbrush_tvolume
 
side_tside
 
struct node_s * children [2]
 
face_tfaces
 
bspbrush_tbrushlist
 
int32_t contentFlags
 
int area
 
struct portal_s * portals
 

Detailed Description

Definition at line 42 of file bsp.h.

Field Documentation

◆ area

int node_t::area

for areaportals -

Todo:
not used, remove it when we change the bsp version the next time

Definition at line 57 of file bsp.h.

Referenced by EmitLeaf().

◆ brushlist

bspbrush_t* node_t::brushlist

leafs only fragments of all brushes in this leaf

Definition at line 55 of file bsp.h.

Referenced by EmitLeaf(), FindPortalSide(), FreeTree_r(), LeafNode(), and PruneNodes_r().

◆ children

◆ contentFlags

int32_t node_t::contentFlags

OR of all brush contents

Definition at line 56 of file bsp.h.

Referenced by EmitLeaf(), LeafNode(), MakeFaces_r(), MarkVisibleSides_r(), and PruneNodes_r().

◆ faces

◆ nBox

AABB node_t::nBox

valid after portalization

Definition at line 46 of file bsp.h.

Referenced by CalcNodeBounds(), ConstructLevelNodes_r(), EmitDrawNode_r(), EmitLeaf(), and MakeTreePortals_r().

◆ parent

struct node_s* node_t::parent

Definition at line 45 of file bsp.h.

Referenced by BaseWindingForNode(), BuildTree_r(), and CheckPlaneAgainstParents().

◆ planenum

◆ portals

struct portal_s* node_t::portals

◆ side

side_t* node_t::side

nodes only the side that created the node

Definition at line 50 of file bsp.h.

Referenced by BuildTree_r(), and LeafNode().

◆ volume

bspbrush_t* node_t::volume

one for each leaf/node

Definition at line 47 of file bsp.h.

Referenced by BuildTree(), BuildTree_r(), and FreeTree_r().


The documentation for this struct was generated from the following file: