#include "glwindow.h" #include #include GlWindow::GlWindow(QWidget* parent): QOpenGLWidget( parent ) { QTimer* t = new QTimer( this ); connect( t, &QTimer::timeout, this, QOverload<>::of( &GlWindow::update ) ); t->start( 0 ); } void GlWindow::paintGL() { glClearColor( 1,1,1, 1); glClear( GL_COLOR_BUFFER_BIT ); glEnable( GL_DEPTH_TEST ); } void GlWindow::initializeGL() { }