tree.c File Reference

#include "bsp.h"
Include dependency graph for tree.c:

Go to the source code of this file.

Functions

static void FreeTreePortals_r (node_t *node)
static void FreeTree_r (node_t *node)
void FreeTree (tree_t *tree)
static void PruneNodes_r (node_t *node)
 Will cut solid nodes by recursing down the bsp tree.
void PruneNodes (node_t *node)

Variables

int c_nodes
static int c_pruned

Detailed Description

Definition in file tree.c.


Function Documentation

void FreeTree ( tree_t tree  ) 

Definition at line 79 of file tree.c.

References FreeTree_r(), FreeTreePortals_r(), tree_t::headnode, and Mem_Free.

Referenced by ConstructLevelNodes_r(), and ProcessSubModel().

static void FreeTree_r ( node_t node  )  [static]
static void FreeTreePortals_r ( node_t node  )  [static]
void PruneNodes ( node_t node  ) 
See also:
PruneNodes_r

Definition at line 135 of file tree.c.

References c_pruned, PruneNodes_r(), VERB_EXTRA, and Verb_Printf().

Referenced by ConstructLevelNodes_r().

static void PruneNodes_r ( node_t node  )  [static]

Will cut solid nodes by recursing down the bsp tree.

See also:
PruneNodes

Todo:
free stuff

Definition at line 96 of file tree.c.

References node_s::brushlist, c_pruned, node_s::children, node_s::contentFlags, CONTENTS_SOLID, node_s::faces, bspbrush_s::next, next, node_s::planenum, PLANENUM_LEAF, and Sys_Error().

Referenced by PruneNodes().


Variable Documentation

int c_nodes

Definition at line 28 of file brushbsp.c.

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

int c_pruned [static]

Definition at line 90 of file tree.c.

Referenced by PruneNodes(), and PruneNodes_r().


Generated by  doxygen 1.6.2