2 #include <libavformat/avformat.h>
9 #include <QApplication>
10 #include <QCoreApplication>
13 #include <QSurfaceFormat>
17 #include "mainwindow.h"
20 int main(int argc, char *argv[])
22 setenv("QT_XCB_GL_INTEGRATION", "xcb_egl", 0);
25 parse_flags(argc, argv);
27 QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
28 QApplication app(argc, argv);
31 fmt.setDepthBufferSize(0);
32 fmt.setStencilBufferSize(0);
33 fmt.setProfile(QSurfaceFormat::CoreProfile);
34 fmt.setMajorVersion(3);
35 fmt.setMinorVersion(1);
36 QSurfaceFormat::setDefaultFormat(fmt);
38 QGLFormat::setDefaultFormat(QGLFormat::fromSurfaceFormat(fmt));
40 global_share_widget = new QGLWidget();
42 MainWindow mainWindow;
43 mainWindow.resize(QSize(1500, 810));
46 app.installEventFilter(&mainWindow); // For white balance color picking.
50 mainWindow.mixer_shutting_down();