X-Git-Url: https://harrygodden.com/git/?p=csRadar.git;a=blobdiff_plain;f=vmdl.h;h=d6564a3a87dfe4afbb5d1d2eb73d1bb663d51ab8;hp=7b5bb07263dec764036883064c23158afffbf29f;hb=d7339f0f28ca5b35ad60a393ca270cbae1a154c6;hpb=0399aad1d7374badf037a2696d9e276d71b7a297 diff --git a/vmdl.h b/vmdl.h index 7b5bb07..d6564a3 100644 --- a/vmdl.h +++ b/vmdl.h @@ -460,6 +460,9 @@ typedef struct float *vertices; u32 num_vertices; + + // Bounding box + boxf bounds; } mdl_mesh_t; @@ -520,6 +523,9 @@ int mdl_from_find_files( const char *mdlname, mdl_mesh_t *ctx ) return 0; } + v3_copy( pMdl->hull_min, ctx->bounds[0] ); + v3_copy( pMdl->hull_max, ctx->bounds[1] ); + ctx->num_indices = vtx_count_indices( pVtxHdr ); // Allocate and read indices