summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:48 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:48 +0000
commit836d8f7138633517c6e503520f7be354ac32d836 (patch)
tree9e6947fdabd51dd901a1f4106e2e16c989deffef /tests
parent042ef96e2c004a963451edc9efa7074316a360c4 (diff)
downloaddimension-836d8f7138633517c6e503520f7be354ac32d836.tar.xz
Properly forward-declare dmnsn_object and dmnsn_camera, and take a
transformation matrix in dmnsn_new_perspective_camera().
Diffstat (limited to 'tests')
-rw-r--r--tests/raytrace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c
index 15c5d70..a05770b 100644
--- a/tests/raytrace.c
+++ b/tests/raytrace.c
@@ -33,7 +33,9 @@ int main() {
scene = dmnsn_new_scene();
scene->canvas = dmnsn_new_canvas(768, 480);
- scene->camera = dmnsn_new_perspective_camera();
+ scene->camera = dmnsn_new_perspective_camera(
+ dmnsn_translation_matrix(dmnsn_vector_construct(0.0, 0.0, -3.0))
+ );
sRGB.R = 0.0;
sRGB.G = 0.0;