summaryrefslogtreecommitdiffstats
path: root/libdimension/plane.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-31 15:34:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-31 15:34:59 -0400
commit180714c96505c53d380e2f205034f587cab0466d (patch)
tree62d1c654189abc715f2499e82345305417d31565 /libdimension/plane.c
parent74323fa54010d29737281579e4f3b4038da94989 (diff)
downloaddimension-180714c96505c53d380e2f205034f587cab0466d.tar.xz
object: Use pool.
Diffstat (limited to 'libdimension/plane.c')
-rw-r--r--libdimension/plane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/plane.c b/libdimension/plane.c
index e2c8ae8..e597306 100644
--- a/libdimension/plane.c
+++ b/libdimension/plane.c
@@ -43,13 +43,13 @@ static bool dmnsn_plane_inside_fn(const dmnsn_object *plane,
/* Allocate a new plane */
dmnsn_object *
-dmnsn_new_plane(dmnsn_vector normal)
+dmnsn_new_plane(dmnsn_pool *pool, dmnsn_vector normal)
{
- dmnsn_plane *plane = DMNSN_MALLOC(dmnsn_plane);
+ dmnsn_plane *plane = DMNSN_PALLOC(pool, dmnsn_plane);
plane->normal = normal;
dmnsn_object *object = &plane->object;
- dmnsn_init_object(object);
+ dmnsn_init_object(pool, object);
object->intersection_fn = dmnsn_plane_intersection_fn;
object->inside_fn = dmnsn_plane_inside_fn;
object->bounding_box = dmnsn_infinite_bounding_box();