mirror of https://github.com/CGAL/cgal
Revert "Fix for the context"
This reverts commit 552aaa159f.
Conflicts:
Linear_cell_complex/examples/Linear_cell_complex/linear_cell_complex_3_viewer_qt.h
This commit is contained in:
parent
b8599c199a
commit
0a37521263
|
|
@ -5,7 +5,7 @@
|
|||
#include <CGAL/Qt/CreateOpenGLContext.h>
|
||||
|
||||
Viewer::Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent),
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent),
|
||||
m_pScene(NULL),
|
||||
m_custom_mouse(false)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include "CGAL/Qt/CreateOpenGLContext.h"
|
||||
|
||||
Viewer::Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
|
||||
{
|
||||
are_buffers_initialized = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
|
||||
Viewer::Viewer(QWidget* parent )
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
|
||||
{
|
||||
extension_is_found = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
#include <QGLContext>
|
||||
namespace CGAL{
|
||||
namespace Qt{
|
||||
inline QGLContext* createOpenGLContext(QObject* parent)
|
||||
inline QGLContext* createOpenGLContext()
|
||||
{
|
||||
QOpenGLContext *context = new QOpenGLContext(parent);
|
||||
QOpenGLContext *context = new QOpenGLContext();
|
||||
QSurfaceFormat format;
|
||||
format.setVersion(2,1);
|
||||
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||
|
|
@ -35,9 +35,9 @@ inline QGLContext* createOpenGLContext(QObject* parent)
|
|||
return result;
|
||||
}
|
||||
|
||||
inline QGLContext* createOpenGLMSAAContext(QObject* parent)
|
||||
inline QGLContext* createOpenGLMSAAContext()
|
||||
{
|
||||
QOpenGLContext *context = new QOpenGLContext(parent);
|
||||
QOpenGLContext *context = new QOpenGLContext();
|
||||
QSurfaceFormat format;
|
||||
format.setVersion(2,1);
|
||||
format.setProfile(QSurfaceFormat::CompatibilityProfile);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
#include <QDebug>
|
||||
|
||||
Viewer::Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(parent),parent), wireframe(false),
|
||||
: QGLViewer(CGAL::Qt::createOpenGLMSAAContext(),parent), wireframe(false),
|
||||
flatShading(true), edges(true), vertices(true),
|
||||
m_previous_scene_empty(true), are_buffers_initialized(false)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -153,8 +153,8 @@ class SimpleLCCViewerQt : public QGLViewer, public QOpenGLFunctions_2_1
|
|||
|
||||
public:
|
||||
// Constructor/Destructor
|
||||
SimpleLCCViewerQt(LCC& alcc, QObject* parent) :
|
||||
QGLViewer(CGAL::Qt::createOpenGLContext(parent)),
|
||||
SimpleLCCViewerQt(LCC& alcc) :
|
||||
QGLViewer(CGAL::Qt::createOpenGLContext()),
|
||||
lcc(alcc),
|
||||
wireframe(false),
|
||||
flatShading(true),
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <CGAL/Qt/CreateOpenGLContext.h>
|
||||
|
||||
Viewer::Viewer(QWidget* parent, bool antialiasing)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent),
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(), parent),
|
||||
scene(0),
|
||||
antialiasing(antialiasing),
|
||||
twosides(false),
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
#include <CGAL/Qt/CreateOpenGLContext.h>
|
||||
|
||||
Viewer::Viewer(QWidget *parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
|
||||
{}
|
||||
Viewer::~Viewer()
|
||||
{}
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Viewer : public QGLViewer, QOpenGLFunctions_2_1 {
|
|||
int nr_of_facets;
|
||||
public:
|
||||
Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(), parent)
|
||||
{}
|
||||
~Viewer()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public:
|
|||
NB_OF_PROGRAMS /** Holds the number of different programs in this enum.*/
|
||||
};
|
||||
|
||||
Viewer_interface(QWidget* parent) : QGLViewer(CGAL::Qt::createOpenGLContext(parent), parent) {}
|
||||
Viewer_interface(QWidget* parent) : QGLViewer(CGAL::Qt::createOpenGLContext(), parent) {}
|
||||
virtual ~Viewer_interface() {}
|
||||
|
||||
//! Sets the scene for the viewer.
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class Viewer : public QGLViewer, QOpenGLFunctions_2_1 {
|
|||
|
||||
public:
|
||||
Viewer(QWidget* parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(parent),parent)
|
||||
: QGLViewer(CGAL::Qt::createOpenGLContext(),parent)
|
||||
, m_showAxis(false)
|
||||
, m_showVertex(true)
|
||||
, m_showDEdge(true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue