text: #include "../include/mainwindow.h"
  #include <QApplication>
  #include <QSurfaceFormat>
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
  
      QSurfaceFormat format;
      format.setSwapInterval(0); // disable v-sync
      format.setSwapBehavior(QSurfaceFormat::SwapBehavior::TripleBuffer);
      format.setVersion(3, 0);
      format.setProfile(QSurfaceFormat::CoreProfile);
      format.setDepthBufferSize(24);
      format.setRenderableType(QSurfaceFormat::OpenGL);
      QSurfaceFormat::setDefaultFormat(format);
  
      MainWindow w;
      w.show();
      return a.exec();
  }
  