From 249203127d1ae989785978024ef0ad25bc994384 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 11 Jul 2009 16:54:58 +0000 Subject: Allow Array's of non-POD types through specialized Array_Element class. --- tests/testsxx.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/testsxx.cpp b/tests/testsxx.cpp index aaeb546..b4c28d9 100644 --- a/tests/testsxx.cpp +++ b/tests/testsxx.cpp @@ -38,7 +38,9 @@ namespace Dimension Matrix::rotation(Vector(0.0, 1.0, 0.0)) * Matrix::translation(Vector(0.0, 0.0, -4.0)) * Matrix::scale( - Vector(static_cast(canvas.width())/canvas.height(), 1.0, 1.0) + Vector(static_cast(canvas.width())/canvas.height(), + 1.0, + 1.0) ) ); @@ -49,11 +51,11 @@ namespace Dimension Sphere sphere; sphere.trans(inverse(Matrix::scale(Vector(1.25, 1.25, 1.25)))); - scene.push_object(sphere); + scene.objects().push(sphere); Cube cube; cube.trans(inverse(Matrix::rotation(Vector(0.75, 0.0, 0.0)))); - scene.push_object(cube); + scene.objects().push(cube); return scene; } -- cgit v1.2.3