From 23229722b2abd0021c697e3f6e43f74b51e4ee41 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 16 Apr 2010 14:06:31 -0400 Subject: Implement image_{width,height}. --- tests/dimension/csg.pov | 2 +- tests/dimension/csg.sh | 4 ++-- tests/dimension/demo.pov | 2 +- tests/dimension/demo.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/dimension') diff --git a/tests/dimension/csg.pov b/tests/dimension/csg.pov index 046510f..aa3373e 100644 --- a/tests/dimension/csg.pov +++ b/tests/dimension/csg.pov @@ -22,7 +22,7 @@ camera { perspective location -4*z - right 1.6*x + right x*image_width/image_height look_at 0 } diff --git a/tests/dimension/csg.sh b/tests/dimension/csg.sh index 325aaba..7f4732c 100755 --- a/tests/dimension/csg.sh +++ b/tests/dimension/csg.sh @@ -19,13 +19,13 @@ # along with this program. If not, see . # ######################################################################### -csg=$(${top_builddir}/dimension/dimension --parse ${srcdir}/csg.pov) +csg=$(${top_builddir}/dimension/dimension -w768 -h480 --parse ${srcdir}/csg.pov) csg_exp="$(echo -n \ '((camera perspective (location (vector (integer 0) (integer 0) (integer -4) (integer 0) (integer 0))) - (right (vector (float 1.6) (float 0) (float 0) (float 0) (float 0))) + (right (vector (float 1.6) (integer 0) (integer 0) (integer 0) (integer 0))) (look_at (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0)))) (background diff --git a/tests/dimension/demo.pov b/tests/dimension/demo.pov index 4f558c5..4175b77 100644 --- a/tests/dimension/demo.pov +++ b/tests/dimension/demo.pov @@ -22,7 +22,7 @@ camera { perspective location <0, 0.25, -4> - right <1.6, 0, 0> + right x*image_width/image_height look_at <0, 0, 0> rotate 53*y diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh index f047f55..4ea0a1e 100755 --- a/tests/dimension/demo.sh +++ b/tests/dimension/demo.sh @@ -19,7 +19,7 @@ # along with this program. If not, see . # ######################################################################### -demo=$(${top_builddir}/dimension/dimension --parse ${srcdir}/demo.pov) +demo=$(${top_builddir}/dimension/dimension -w768 -h480 --parse ${srcdir}/demo.pov) demo_exp=$(echo -n \ '((camera perspective -- cgit v1.2.3