#include "bsp.h"
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 |
Definition in file tree.c.
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] |
Definition at line 50 of file tree.c.
References node_s::brushlist, c_nodes, node_s::children, f, node_s::faces, FreeBrush(), FreeBrushList(), FreeFace(), Mem_Free, face_s::next, node_s::planenum, PLANENUM_LEAF, threadstate, and node_s::volume.
Referenced by FreeTree().
static void FreeTreePortals_r | ( | node_t * | node | ) | [static] |
Definition at line 29 of file tree.c.
References node_s::children, FreePortal(), portal_s::next, portal_s::nodes, node_s::planenum, PLANENUM_LEAF, node_s::portals, and RemovePortalFromNode().
Referenced by FreeTree().
void PruneNodes | ( | node_t * | node | ) |
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.
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().
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().