diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-07-07 04:22:49 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-07-07 04:22:49 +0000 |
commit | d7b7b4b3391cf99ca63d8311eac3957df7a862ed (patch) | |
tree | ca25a171111abb0bfffc53fd61b01623b36992b6 /tests/glxx.cpp | |
parent | c54af1b6644216335361e61e770037aca1527756 (diff) | |
download | dimension-d7b7b4b3391cf99ca63d8311eac3957df7a862ed.tar.xz |
New C++ dmnsn_display* wrapper for tests.
Diffstat (limited to 'tests/glxx.cpp')
-rw-r--r-- | tests/glxx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/glxx.cpp b/tests/glxx.cpp index 1fc08c4..eb74209 100644 --- a/tests/glxx.cpp +++ b/tests/glxx.cpp @@ -60,7 +60,7 @@ main() { Raytracer raytracer(scene); GL_Drawer drawer(scene.canvas()); - dmnsn_display* display = dmnsn_new_display(scene.canvas().dmnsn()); + Dimension::Display display(scene.canvas()); // Render the scene for (unsigned int i = 0; i < 10; ++i) { @@ -69,7 +69,7 @@ main() { rprogress.finish(); drawer.draw(); - dmnsn_display_frame(display); + display.flush(); cube.trans(inverse(Matrix::rotation(Vector(0.025, 0.0, 0.0)))*cube.trans()); camera.trans(Matrix::rotation(Vector(0.0, -0.05, 0.0))*camera.trans()); |