diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-02-23 21:34:06 (GMT) |
commit | 5389107aa684ab99701e238a7297f07b35f7d521 (patch) | |
tree | 327a51e43bcb642c849c5cfafadf8e84966c662d /src/export_png.cc | |
parent | 4f578513a0960d4f079260922cdc86de0948099c (diff) |
create GLView as parent of OffscreenView and QGLView. combine setRenderer()
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 1a92fc9..2d6a4a2 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.qglview = new OffscreenView(512,512); + csgInfo.glview = 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.qglview->setCamera(camerapos, center); - csgInfo.qglview->setRenderer(&cgalRenderer); - csgInfo.qglview->paintGL(); - csgInfo.qglview->save(output); + csgInfo.glview->setCamera(camerapos, center); + csgInfo.glview->setRenderer(&cgalRenderer); + csgInfo.glview->paintGL(); + csgInfo.glview->save(output); } void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output) |