diff options
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()); |