![]() |
DarkPlaces
Game engine based on the Quake 1 engine by id Software, developed by LadyHavoc
|
|
Go to the source code of this file.
Functions | |
int | BIH_Build (bih_t *bih, int numleafs, bih_leaf_t *leafs, int maxnodes, bih_node_t *nodes, int *temp_leafsort, int *temp_leafsortscratch) |
static int | BIH_BuildNode (bih_t *bih, int numchildren, int *leaflist, float *totalmins, float *totalmaxs) |
int | BIH_GetTriangleListForBox (const bih_t *bih, int maxtriangles, int *trianglelist_idx, int *trianglelist_surf, const float *mins, const float *maxs) |
static void | BIH_GetTriangleListForBox_Node (const bih_t *bih, int nodenum, int maxtriangles, int *trianglelist_idx, int *trianglelist_surf, int *numtrianglespointer, const float *mins, const float *maxs) |
int BIH_Build | ( | bih_t * | bih, |
int | numleafs, | ||
bih_leaf_t * | leafs, | ||
int | maxnodes, | ||
bih_node_t * | nodes, | ||
int * | temp_leafsort, | ||
int * | temp_leafsortscratch ) |
Definition at line 133 of file bih.c.
References BIH_BuildNode(), bih_t::error, i, bih_t::leafs, bih_t::leafsort, bih_t::leafsortscratch, bih_t::maxnodes, bih_t::maxs, bih_t::mins, bih_t::nodes, bih_t::numleafs, bih_t::numnodes, and bih_t::rootnode.
Referenced by Mod_MakeCollisionBIH().
|
static |
Definition at line 8 of file bih.c.
References bih_node_t::back, bih_node_t::backmax, BIH_BuildNode(), BIH_MAXUNORDEREDCHILDREN, BIH_SPLITX, BIH_UNORDERED, BIHERROR_OUT_OF_NODES, bih_node_t::children, bih_t::error, bih_node_t::front, bih_node_t::frontmin, i, bih_t::leafs, bih_t::leafsortscratch, bih_t::maxnodes, bih_leaf_t::maxs, bih_node_t::maxs, maxs, bih_leaf_t::mins, bih_node_t::mins, mins, bih_t::nodes, bih_t::numnodes, size, and bih_node_t::type.
Referenced by BIH_Build(), and BIH_BuildNode().
int BIH_GetTriangleListForBox | ( | const bih_t * | bih, |
int | maxtriangles, | ||
int * | trianglelist_idx, | ||
int * | trianglelist_surf, | ||
const float * | mins, | ||
const float * | maxs ) |
Definition at line 211 of file bih.c.
References BIH_GetTriangleListForBox_Node(), maxs, mins, and bih_t::rootnode.
Referenced by R_DecalSystem_SplatEntity().
|
static |
Definition at line 155 of file bih.c.
References bih_node_t::back, bih_node_t::backmax, BIH_GetTriangleListForBox_Node(), BIH_MAXUNORDEREDCHILDREN, BIH_RENDERTRIANGLE, BIH_SPLITX, BIH_UNORDERED, bih_node_t::children, bih_node_t::front, bih_node_t::frontmin, bih_leaf_t::itemindex, bih_t::leafs, bih_leaf_t::maxs, maxs, bih_leaf_t::mins, mins, bih_t::nodes, bih_leaf_t::surfaceindex, bih_leaf_t::type, and bih_node_t::type.
Referenced by BIH_GetTriangleListForBox(), and BIH_GetTriangleListForBox_Node().