the luxuries of a modern C compiler
[carveJwlIkooP6JGAAIwe30JlM.git] / world_volumes.h
1 #ifndef WORLD_VOLUMES_H
2 #define WORLD_VOLUMES_H
3
4 #include "world.h"
5 #include "bvh.h"
6
7 struct {
8 int inside;
9 }
10 static world_volumes;
11
12 VG_STATIC void volume_vg_expand_bound( void *user, boxf bound, u32 item_index );
13 VG_STATIC float volume_vg_centroid( void *user, u32 item_index, int axis );
14 VG_STATIC void volume_vg_swap( void *user, u32 ia, u32 ib );
15 VG_STATIC void volume_vg_debug( void *user, u32 item_index );
16
17 static bh_system bh_system_volumes =
18 {
19 .expand_bound = volume_vg_expand_bound,
20 .item_centroid = volume_vg_centroid,
21 .item_closest = NULL,
22 .item_swap = volume_vg_swap,
23 .item_debug = volume_vg_debug,
24 .cast_ray = NULL
25 };
26
27 #endif /* WORLD_VOLUMES_H */