X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=bih.h;h=810cf9ca9e87ad7e53be86ec7c5c333d6c4a7187;hb=1c76312b52aad3565537a423344fa4d9f543e6c3;hp=194a6533280506af26d89995b3e7639d72174ed5;hpb=3af0b7fb7378c916612c11f76e5880164497a0d1;p=xonotic%2Fdarkplaces.git diff --git a/bih.h b/bih.h index 194a6533..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; @@ -52,6 +52,7 @@ typedef struct bih_leaf_s float maxs[3]; // data past this point is generic and entirely up to the caller... int textureindex; + int surfaceindex; int itemindex; // triangle or brush index } bih_leaf_t; @@ -80,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