A viewer to specify the OpenGL context for QGLViewer's constructor

This commit is contained in:
Maxime Gimeno 2015-07-08 13:10:11 +02:00
parent 278e9d9829
commit 76a1911042
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,8 @@
#include "Viewer.h"
#include <CGAL/Qt/CreateOpenGLContext.h>
Viewer::Viewer(QWidget *parent)
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
{}
Viewer::~Viewer()
{}

View File

@ -0,0 +1,13 @@
#ifndef VIEWER_H
#define VIEWER_H
#include <QGLViewer/qglviewer.h>
class Viewer : public QGLViewer{
Q_OBJECT
public:
Viewer(QWidget* parent);
virtual ~Viewer();
};
#endif //VIEWER_H