summaryrefslogtreecommitdiffstats
path: root/libdimension/csg.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/csg.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/csg.c')
-rw-r--r--libdimension/csg.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/libdimension/csg.c b/libdimension/csg.c
index 34fcfb2..9d02174 100644
--- a/libdimension/csg.c
+++ b/libdimension/csg.c
@@ -97,10 +97,10 @@ dmnsn_new_csg_union(const dmnsn_array *objects)
dmnsn_array_push(csg->children, object);
}
- csg->intersection_fn = &dmnsn_csg_union_intersection_fn;
- csg->inside_fn = &dmnsn_csg_union_inside_fn;
- csg->initialize_fn = &dmnsn_csg_union_initialize_fn;
- csg->free_fn = &dmnsn_csg_union_free_fn;
+ csg->intersection_fn = dmnsn_csg_union_intersection_fn;
+ csg->inside_fn = dmnsn_csg_union_inside_fn;
+ csg->initialize_fn = dmnsn_csg_union_initialize_fn;
+ csg->free_fn = dmnsn_csg_union_free_fn;
return csg;
}
@@ -241,10 +241,10 @@ dmnsn_new_csg_intersection(dmnsn_object *A, dmnsn_object *B)
params[1] = B;
csg->ptr = params;
- csg->intersection_fn = &dmnsn_csg_intersection_intersection_fn;
- csg->inside_fn = &dmnsn_csg_intersection_inside_fn;
- csg->initialize_fn = &dmnsn_csg_intersection_initialize_fn;
- csg->free_fn = &dmnsn_csg_free_fn;
+ csg->intersection_fn = dmnsn_csg_intersection_intersection_fn;
+ csg->inside_fn = dmnsn_csg_intersection_inside_fn;
+ csg->initialize_fn = dmnsn_csg_intersection_initialize_fn;
+ csg->free_fn = dmnsn_csg_free_fn;
return csg;
}
@@ -299,10 +299,10 @@ dmnsn_new_csg_difference(dmnsn_object *A, dmnsn_object *B)
params[1] = B;
csg->ptr = params;
- csg->intersection_fn = &dmnsn_csg_difference_intersection_fn;
- csg->inside_fn = &dmnsn_csg_difference_inside_fn;
- csg->initialize_fn = &dmnsn_csg_difference_initialize_fn;
- csg->free_fn = &dmnsn_csg_free_fn;
+ csg->intersection_fn = dmnsn_csg_difference_intersection_fn;
+ csg->inside_fn = dmnsn_csg_difference_inside_fn;
+ csg->initialize_fn = dmnsn_csg_difference_initialize_fn;
+ csg->free_fn = dmnsn_csg_free_fn;
return csg;
}
@@ -360,10 +360,10 @@ dmnsn_new_csg_merge(dmnsn_object *A, dmnsn_object *B)
params[1] = B;
csg->ptr = params;
- csg->intersection_fn = &dmnsn_csg_merge_intersection_fn;
- csg->inside_fn = &dmnsn_csg_merge_inside_fn;
- csg->initialize_fn = &dmnsn_csg_merge_initialize_fn;
- csg->free_fn = &dmnsn_csg_free_fn;
+ csg->intersection_fn = dmnsn_csg_merge_intersection_fn;
+ csg->inside_fn = dmnsn_csg_merge_inside_fn;
+ csg->initialize_fn = dmnsn_csg_merge_initialize_fn;
+ csg->free_fn = dmnsn_csg_free_fn;
return csg;
}