diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-06-13 20:47:24 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-06-13 20:47:24 +0000 |
commit | 5c8f366a3b5d7303bf73bd6d5d0af0459bac72a2 (patch) | |
tree | adef78e07d9d9fa739d3fd661e959eb9ac023458 /tests/raytrace.c | |
parent | 4ef467adcb69fecadf9e8410fc8b33e1bb307365 (diff) | |
download | dimension-5c8f366a3b5d7303bf73bd6d5d0af0459bac72a2.tar.xz |
Add camera type.
Diffstat (limited to 'tests/raytrace.c')
-rw-r--r-- | tests/raytrace.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c index 7a5f3aa..15c5d70 100644 --- a/tests/raytrace.c +++ b/tests/raytrace.c @@ -31,7 +31,9 @@ int main() { dmnsn_set_resilience(DMNSN_SEVERITY_LOW); - scene = dmnsn_new_scene(768, 480); + scene = dmnsn_new_scene(); + scene->canvas = dmnsn_new_canvas(768, 480); + scene->camera = dmnsn_new_perspective_camera(); sRGB.R = 0.0; sRGB.G = 0.0; @@ -48,5 +50,9 @@ int main() { file = fopen("raytrace.png", "wb"); dmnsn_png_write_canvas(scene->canvas, file); + dmnsn_delete_perspective_camera(scene->camera); + dmnsn_delete_canvas(scene->canvas); + dmnsn_delete_scene(scene); + return EXIT_SUCCESS; } |