diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tests.c | 3 | ||||
-rw-r--r-- | tests/testsxx.cpp | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/tests.c b/tests/tests.c index ed00b64..f8c02de 100644 --- a/tests/tests.c +++ b/tests/tests.c @@ -65,12 +65,13 @@ dmnsn_new_default_scene() ); /* Create a perspective camera */ - scene->camera = dmnsn_new_perspective_camera(trans); + scene->camera = dmnsn_new_perspective_camera(); if (!scene->camera) { dmnsn_delete_canvas(scene->canvas); dmnsn_delete_scene(scene); return NULL; } + dmnsn_set_perspective_camera_trans(scene->camera, trans); /* Now make our objects */ diff --git a/tests/testsxx.cpp b/tests/testsxx.cpp index a8fa762..fa8c2f0 100644 --- a/tests/testsxx.cpp +++ b/tests/testsxx.cpp @@ -30,7 +30,8 @@ namespace Dimension Canvas canvas(768, 480); // Camera - Perspective_Camera camera( + Perspective_Camera camera; + camera.trans( Matrix::rotation(Vector(0.0, 1.0, 0.0)) * Matrix::translation(Vector(0.0, 0.0, -4.0)) * Matrix::scale( |