Go to the source code of this file.
|
int | BIH_Build (bih_t *bih, int numleafs, bih_leaf_t *leafs, int maxnodes, bih_node_t *nodes, int *temp_leafsort, int *temp_leafsortscratch) |
|
int | BIH_GetTriangleListForBox (const bih_t *bih, int maxtriangles, int *trianglelist_idx, int *trianglelist_surf, const float *mins, const float *maxs) |
|
◆ BIH_MAXUNORDEREDCHILDREN
#define BIH_MAXUNORDEREDCHILDREN 8 |
◆ bih_leaftype_t
Enumerator |
---|
BIH_BRUSH | |
BIH_COLLISIONTRIANGLE | |
BIH_RENDERTRIANGLE | |
Definition at line 27 of file bih.h.
◆ bih_nodetype_t
Enumerator |
---|
BIH_SPLITX | |
BIH_SPLITY | |
BIH_SPLITZ | |
BIH_UNORDERED | |
Definition at line 18 of file bih.h.
◆ biherror_t
Enumerator |
---|
BIHERROR_OK | |
BIHERROR_OUT_OF_NODES | |
Definition at line 11 of file bih.h.
◆ BIH_Build()
Definition at line 133 of file bih.c.
134{
136
137 memset(bih, 0, sizeof(*bih));
145
146
150
153}
static int BIH_BuildNode(bih_t *bih, int numchildren, int *leaflist, float *totalmins, float *totalmaxs)
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().
◆ BIH_GetTriangleListForBox()
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.
212{
213 int numtriangles = 0;
215 return numtriangles;
216}
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)
References BIH_GetTriangleListForBox_Node(), maxs, mins, and bih_t::rootnode.
Referenced by R_DecalSystem_SplatEntity().