summaryrefslogtreecommitdiffstats
path: root/libdimension/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-30 18:51:59 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-30 18:51:59 -0400
commit4781d3a2a7ec463ee712c8de6362d8b6c872c31b (patch)
tree7bc2b7c8605f25e300a9be3d85230173d35a5fa9 /libdimension/tests
parent57ee9bfb0dddba7ea06fd0e09c8aa2d80b8eb46d (diff)
downloaddimension-4781d3a2a7ec463ee712c8de6362d8b6c872c31b.tar.xz
interior: Use pool.
Diffstat (limited to 'libdimension/tests')
-rw-r--r--libdimension/tests/render.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c
index ebdc557..3c551da 100644
--- a/libdimension/tests/render.c
+++ b/libdimension/tests/render.c
@@ -117,7 +117,7 @@ dmnsn_test_scene_add_lights(dmnsn_pool *pool, dmnsn_scene *scene)
}
static void
-dmnsn_test_scene_add_hollow_cube(dmnsn_scene *scene)
+dmnsn_test_scene_add_hollow_cube(dmnsn_pool *pool, dmnsn_scene *scene)
{
dmnsn_object *cube = dmnsn_new_cube();
cube->trans = dmnsn_rotation_matrix(
@@ -133,7 +133,7 @@ dmnsn_test_scene_add_hollow_cube(dmnsn_scene *scene)
cube->texture->finish.reflection =
dmnsn_new_basic_reflection(dmnsn_black, reflect, 1.0);
- cube->interior = dmnsn_new_interior();
+ cube->interior = dmnsn_new_interior(pool);
cube->interior->ior = 1.1;
dmnsn_object *sphere = dmnsn_new_sphere();
@@ -290,9 +290,9 @@ dmnsn_test_scene_add_ground(dmnsn_scene *scene)
}
static void
-dmnsn_test_scene_add_objects(dmnsn_scene *scene)
+dmnsn_test_scene_add_objects(dmnsn_pool *pool, dmnsn_scene *scene)
{
- dmnsn_test_scene_add_hollow_cube(scene);
+ dmnsn_test_scene_add_hollow_cube(pool, scene);
dmnsn_test_scene_add_spike(scene);
dmnsn_test_scene_add_triangle_strip(scene);
dmnsn_test_scene_add_ground(scene);
@@ -310,7 +310,7 @@ dmnsn_new_test_scene(dmnsn_pool *pool)
dmnsn_test_scene_add_camera(pool, scene);
dmnsn_test_scene_add_background(pool, scene);
dmnsn_test_scene_add_lights(pool, scene);
- dmnsn_test_scene_add_objects(scene);
+ dmnsn_test_scene_add_objects(pool, scene);
return scene;
}