summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-16 02:50:22 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-16 02:50:22 -0400
commitfc54151bbc6c81067c1d6c8ee752e6aad1ea984e (patch)
tree6d312ad23009e4022e7671d150019616d0dc9f66
parenta52e8bc7f279b3932f9ac5c241207b4509c9bd99 (diff)
downloaddimension-fc54151bbc6c81067c1d6c8ee752e6aad1ea984e.tar.xz
Rename dmnsn_bvst_copy() to dmnsn_copy_bvst().
-rw-r--r--libdimension/bvst.c2
-rw-r--r--libdimension/bvst.h2
-rw-r--r--libdimension/raytrace.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/bvst.c b/libdimension/bvst.c
index 9fed665..bfc8124 100644
--- a/libdimension/bvst.c
+++ b/libdimension/bvst.c
@@ -56,7 +56,7 @@ dmnsn_bvst_copy_recursive(dmnsn_bvst_node *root)
/* Copy a BVST */
dmnsn_bvst *
-dmnsn_bvst_copy(dmnsn_bvst *tree)
+dmnsn_copy_bvst(dmnsn_bvst *tree)
{
dmnsn_bvst *copy = dmnsn_new_bvst();
if (tree->root)
diff --git a/libdimension/bvst.h b/libdimension/bvst.h
index b4bff37..b783117 100644
--- a/libdimension/bvst.h
+++ b/libdimension/bvst.h
@@ -54,7 +54,7 @@ struct dmnsn_bvst_node {
};
dmnsn_bvst *dmnsn_new_bvst();
-dmnsn_bvst *dmnsn_bvst_copy(dmnsn_bvst *tree);
+dmnsn_bvst *dmnsn_copy_bvst(dmnsn_bvst *tree);
void dmnsn_delete_bvst(dmnsn_bvst *tree);
void dmnsn_bvst_insert(dmnsn_bvst *tree, dmnsn_object *object);
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index a85d8e6..9d6397e 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -140,7 +140,7 @@ dmnsn_raytrace_scene_multithread(dmnsn_raytrace_payload *payload)
payloads[i].index = i;
payloads[i].threads = nthreads;
if (i > 0) {
- payloads[i].bvst = dmnsn_bvst_copy(payloads[0].bvst);
+ payloads[i].bvst = dmnsn_copy_bvst(payloads[0].bvst);
}
}