update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git] / world_volumes.h
index 5bdc2d9ffdc5e52a01fb46536d2e3fde0c1bb012..2d84e9e00ac8f2f2454a095f97f52a7e203ce7d1 100644 (file)
@@ -1,27 +1,5 @@
-#ifndef WORLD_VOLUMES_H
-#define WORLD_VOLUMES_H
-
+#pragma once
 #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
-};
+#include "vg/vg_bvh.h"
 
-#endif /* WORLD_VOLUMES_H */
+void world_volumes_update( world_instance *world, v3f pos );