X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=bih.h;h=810cf9ca9e87ad7e53be86ec7c5c333d6c4a7187;hb=b035320854424884c174e6b33092f63c4158a3a3;hp=8b79666900d1177a3b5001488ee4c1606437a579;hpb=be40cd674833750c00c605009615f1d809a86c2a;p=xonotic%2Fdarkplaces.git diff --git a/bih.h b/bih.h index 8b796669..810cf9ca 100644 --- a/bih.h +++ b/bih.h @@ -9,7 +9,7 @@ typedef enum biherror_e { BIHERROR_OK, // no error, be happy - BIHERROR_OUT_OF_NODES, // could not produce complete hierarchy, maxnodes too low (should be roughly half of numleafs) + BIHERROR_OUT_OF_NODES // could not produce complete hierarchy, maxnodes too low (should be roughly half of numleafs) } biherror_t; @@ -17,7 +17,7 @@ typedef enum bih_nodetype_e { BIH_SPLITX = 0, BIH_SPLITY = 1, - BIH_SPLITZ = 2, + BIH_SPLITZ = 2 } bih_nodetype_t; @@ -25,7 +25,7 @@ typedef enum bih_leaftype_e { BIH_BRUSH = 3, BIH_COLLISIONTRIANGLE = 4, - BIH_RENDERTRIANGLE = 5, + BIH_RENDERTRIANGLE = 5 } bih_leaftype_t; @@ -81,6 +81,6 @@ bih_t; 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, const float *mins, const float *maxs); +int BIH_GetTriangleListForBox(const bih_t *bih, int maxtriangles, int *trianglelist_idx, int *trianglelist_surf, const float *mins, const float *maxs); #endif