summaryrefslogtreecommitdiffstats
path: root/libdimension/bvst.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-07 15:59:49 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-07 16:09:22 -0400
commit7b08644490cc1f897f4c327af839f0b2448351c0 (patch)
tree7d4fe3dbb0d2dbe8fef27a46f320eac40ecf7298 /libdimension/bvst.h
parent03c4f1bb394e6d0bee61a438937e068ccf57e09d (diff)
downloaddimension-7b08644490cc1f897f4c327af839f0b2448351c0.tar.xz
Don't use dynamic memory for dmnsn_intersection's.
Drops us from ~400,000 allocs to ~1000. Oops ><.
Diffstat (limited to 'libdimension/bvst.h')
-rw-r--r--libdimension/bvst.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdimension/bvst.h b/libdimension/bvst.h
index e682b2c..d300cf9 100644
--- a/libdimension/bvst.h
+++ b/libdimension/bvst.h
@@ -60,6 +60,7 @@ void dmnsn_delete_bvst(dmnsn_bvst *tree);
void dmnsn_bvst_insert(dmnsn_bvst *tree, dmnsn_object *object);
void dmnsn_bvst_splay(dmnsn_bvst *tree, dmnsn_bvst_node *node);
-dmnsn_intersection *dmnsn_bvst_search(dmnsn_bvst *tree, dmnsn_line ray);
+bool dmnsn_bvst_search(dmnsn_bvst *tree, dmnsn_line ray,
+ dmnsn_intersection *intersection);
#endif /* DIMENSION_IMPL_BVST_H */