float *vertices;
u32 num_vertices;
- v3f mins;
- v3f maxs;
+ // Bounding box
+ boxf bounds;
}
mdl_mesh_t;
return 0;
}
+ v3_copy( pMdl->view_bbmin, ctx->bounds[0] );
+ v3_copy( pMdl->view_bbmax, ctx->bounds[1] );
+
ctx->num_indices = vtx_count_indices( pVtxHdr );
// Allocate and read indices