summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-16 21:31:59 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-16 21:31:59 +0000
commitcf3d6906df7ffb4efa5398832e44ab31fe3b2721 (patch)
tree0ed55ed0a315a27ccb42d3953ceaa9b02a868abd /tests
parentbbe317fb2bde1b2b88df66e5426c9ee78e40a0b6 (diff)
downloaddimension-cf3d6906df7ffb4efa5398832e44ab31fe3b2721.tar.xz
Don't take a transformation matrix in dmnsn_new_perspective_camera().
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c3
-rw-r--r--tests/testsxx.cpp3
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(