summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-16 14:06:31 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-16 14:06:31 -0400
commit23229722b2abd0021c697e3f6e43f74b51e4ee41 (patch)
tree85111795e08a24a46788afc90b4b2d98620705a4 /tests
parent7577a2b69f9a77962912753b6768b38db4e3c454 (diff)
downloaddimension-23229722b2abd0021c697e3f6e43f74b51e4ee41.tar.xz
Implement image_{width,height}.
Diffstat (limited to 'tests')
-rw-r--r--tests/dimension/csg.pov2
-rwxr-xr-xtests/dimension/csg.sh4
-rw-r--r--tests/dimension/demo.pov2
-rwxr-xr-xtests/dimension/demo.sh2
4 files changed, 5 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>. #
#########################################################################
-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 <http://www.gnu.org/licenses/>. #
#########################################################################
-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