X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=bvh.h;h=c18bb3052d9ffa532231ae9bcfcba797dbad4814;hb=5ecf9cca8b5b9bf876d7e7c7fde03d5b187bb42b;hp=25be1e5fe0e152be57fef01d060c3a5af93393f5;hpb=d13f2700b1773551307685cc7c34c804ccd6d664;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/bvh.h b/bvh.h index 25be1e5..c18bb30 100644 --- a/bvh.h +++ b/bvh.h @@ -1,3 +1,7 @@ +/* + * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved + */ + #ifndef BVH_H #define BVH_H #include "common.h" @@ -156,6 +160,11 @@ static void bh_create( bh_tree *bh, bh_system *sys, void *user, u32 item_count ) #endif } +static void bh_free( bh_tree *bh ) +{ + vg_free( bh->nodes ); +} + static void bh_debug_node( bh_tree *bh, u32 inode, v3f pos, u32 colour ) { bh_node *node = &bh->nodes[ inode ];