diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-21 01:56:30 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-21 01:56:30 (GMT) |
commit | fc2d9341fac6948716b328b75f3366313bd2545a (patch) | |
tree | 4c40b79dc3250b655f6284ed8db1b787657c69ce /src/export_png.cc | |
parent | b7d1c94dc1462dae0b7a23ddffe1f91c57308aa8 (diff) |
begin process of unifying GLView and OffscreenView. renames, objrot, objtran
Diffstat (limited to 'src/export_png.cc')
-rw-r--r-- | src/export_png.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/export_png.cc b/src/export_png.cc index 2d6a4a2..1a92fc9 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -14,7 +14,7 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output) { CsgInfo csgInfo; try { - csgInfo.glview = new OffscreenView(512,512); + csgInfo.qglview = new OffscreenView(512,512); } catch (int error) { fprintf(stderr,"Can't create OpenGL OffscreenView. Code: %i.\n", error); return; @@ -40,10 +40,10 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output) //std::cerr << center << "\n"; //std::cerr << radius << "\n"; - csgInfo.glview->setCamera(camerapos, center); - csgInfo.glview->setRenderer(&cgalRenderer); - csgInfo.glview->paintGL(); - csgInfo.glview->save(output); + csgInfo.qglview->setCamera(camerapos, center); + csgInfo.qglview->setRenderer(&cgalRenderer); + csgInfo.qglview->paintGL(); + csgInfo.qglview->save(output); } void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output) |