diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-11 16:54:58 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-11 16:54:58 +0000 |
commit | 249203127d1ae989785978024ef0ad25bc994384 (patch) | |
tree | df20ef109ae5435b0fa6ccd6219fa03ab2ef1a86 /tests | |
parent | ca84516fa80cfca35da7df71ea04423780028212 (diff) | |
download | dimension-249203127d1ae989785978024ef0ad25bc994384.tar.xz |
Allow Array's of non-POD types through specialized Array_Element class.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testsxx.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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<double>(canvas.width())/canvas.height(), 1.0, 1.0) + Vector(static_cast<double>(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; } |