UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
node_s Struct Reference

#include <bsp.h>

Data Fields

int32_t planenum
 
struct node_sparent
 
AABB nBox
 
bspbrush_tvolume
 
side_tside
 
struct node_schildren [2]
 
face_tfaces
 
bspbrush_tbrushlist
 
int32_t contentFlags
 
int area
 
struct portal_sportals
 

Detailed Description

Definition at line 42 of file bsp.h.

Field Documentation

int node_s::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 BrushVolume(), and EmitLeaf().

bspbrush_t* node_s::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(), MakeHeadnodePortals(), and PruneNodes_r().

int32_t node_s::contentFlags
AABB node_s::nBox

valid after portalization

Definition at line 46 of file bsp.h.

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

struct node_s* node_s::parent

Definition at line 45 of file bsp.h.

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

struct portal_s* node_s::portals
side_t* node_s::side
bspbrush_t* node_s::volume

one for each leaf/node

Definition at line 47 of file bsp.h.

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


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