summaryrefslogtreecommitdiff
path: root/src/export_png.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/export_png.cc')
-rw-r--r--src/export_png.cc10
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)
contact: Jan Huwald // Impressum