mirror of https://github.com/CGAL/cgal
A viewer to specify the OpenGL context for QGLViewer's constructor
This commit is contained in:
parent
278e9d9829
commit
76a1911042
|
|
@ -0,0 +1,8 @@
|
|||
#include "Viewer.h"
|
||||
#include <CGAL/Qt/CreateOpenGLContext.h>
|
||||
|
||||
Viewer::Viewer(QWidget *parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
|
||||
{}
|
||||
Viewer::~Viewer()
|
||||
{}
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue