diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-31 15:34:59 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-31 15:34:59 -0400 |
commit | 180714c96505c53d380e2f205034f587cab0466d (patch) | |
tree | 62d1c654189abc715f2499e82345305417d31565 /libdimension/plane.c | |
parent | 74323fa54010d29737281579e4f3b4038da94989 (diff) | |
download | dimension-180714c96505c53d380e2f205034f587cab0466d.tar.xz |
object: Use pool.
Diffstat (limited to 'libdimension/plane.c')
-rw-r--r-- | libdimension/plane.c | 6 |
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(); |