diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 17:42:14 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-30 17:42:34 -0400 |
commit | c2b4dcc7660407f687604afe2c03eff0a4ff3a16 (patch) | |
tree | 0c2448810fd79aa3ab9b71f627032f18e031db20 /libdimension/tests | |
parent | 45e219eac23ea4a8181f68300fed693d9ac361a0 (diff) | |
download | dimension-c2b4dcc7660407f687604afe2c03eff0a4ff3a16.tar.xz |
camera: Use pool.
Diffstat (limited to 'libdimension/tests')
-rw-r--r-- | libdimension/tests/render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c index f5ba685..c89a679 100644 --- a/libdimension/tests/render.c +++ b/libdimension/tests/render.c @@ -42,7 +42,7 @@ dmnsn_test_scene_add_canvas(dmnsn_pool *pool, dmnsn_scene *scene) } static void -dmnsn_test_scene_add_camera(dmnsn_scene *scene) +dmnsn_test_scene_add_camera(dmnsn_pool *pool, dmnsn_scene *scene) { /* Set up the transformation matrix for the perspective camera */ dmnsn_matrix trans = dmnsn_scale_matrix( @@ -64,7 +64,7 @@ dmnsn_test_scene_add_camera(dmnsn_scene *scene) ); /* Create a perspective camera */ - scene->camera = dmnsn_new_perspective_camera(); + scene->camera = dmnsn_new_perspective_camera(pool); scene->camera->trans = trans; } @@ -306,7 +306,7 @@ dmnsn_new_test_scene(dmnsn_pool *pool) dmnsn_scene *scene = dmnsn_new_scene(pool); dmnsn_test_scene_set_defaults(scene); dmnsn_test_scene_add_canvas(pool, scene); - dmnsn_test_scene_add_camera(scene); + dmnsn_test_scene_add_camera(pool, scene); dmnsn_test_scene_add_background(pool, scene); dmnsn_test_scene_add_lights(scene); dmnsn_test_scene_add_objects(scene); |