X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_volumes.h;h=199a09679558fe0da1aa3d25ff0e656aea0c0cf3;hb=e311bbe2fa903a7e2a922f202f389b799193195d;hp=5bdc2d9ffdc5e52a01fb46536d2e3fde0c1bb012;hpb=342fcbf6fda017bdd38d56ce0fa7c9e59e589f3b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_volumes.h b/world_volumes.h index 5bdc2d9..199a096 100644 --- a/world_volumes.h +++ b/world_volumes.h @@ -4,24 +4,4 @@ #include "world.h" #include "bvh.h" -struct { - int inside; -} -static world_volumes; - -VG_STATIC void volume_vg_expand_bound( void *user, boxf bound, u32 item_index ); -VG_STATIC float volume_vg_centroid( void *user, u32 item_index, int axis ); -VG_STATIC void volume_vg_swap( void *user, u32 ia, u32 ib ); -VG_STATIC void volume_vg_debug( void *user, u32 item_index ); - -static bh_system bh_system_volumes = -{ - .expand_bound = volume_vg_expand_bound, - .item_centroid = volume_vg_centroid, - .item_closest = NULL, - .item_swap = volume_vg_swap, - .item_debug = volume_vg_debug, - .cast_ray = NULL -}; - #endif /* WORLD_VOLUMES_H */