mirror of https://github.com/CGAL/cgal
FIx Lloyd demo for QGLViewer 2.7
This commit is contained in:
parent
3a97734a70
commit
51f7218c2a
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef VIEWER_H
|
||||
#define VIEWER_H
|
||||
|
||||
#include <QMap>
|
||||
#include <QGLViewer/qglviewer.h>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -150,7 +150,11 @@ MainWindow::savePoints()
|
|||
|
||||
void MainWindow::lloydStep() {
|
||||
scene.lloyd_step();
|
||||
#if QGLVIEWER_VERSION >= 0x020700
|
||||
viewer->update();
|
||||
#else
|
||||
viewer->updateGL();
|
||||
#endif
|
||||
viewer->changed();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
#define VIEWER_H
|
||||
|
||||
#include "Scene.h"
|
||||
#include <QMap>
|
||||
#include <QGLViewer/qglviewer.h>
|
||||
#include <QOpenGLFunctions_2_1>
|
||||
#include <QOpenGLVertexArrayObject>
|
||||
|
|
|
|||
Loading…
Reference in New Issue