18 lines
370 B
C++
18 lines
370 B
C++
#include "mainwindow.h"
|
|
#include <QApplication>
|
|
#include <QSurfaceFormat>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication a(argc, argv);
|
|
Config::load(a);
|
|
QSurfaceFormat fmt;
|
|
fmt.setVersion(4, 5);
|
|
fmt.setProfile(QSurfaceFormat::CoreProfile);
|
|
QSurfaceFormat::setDefaultFormat(fmt);
|
|
|
|
MainWindow w;
|
|
w.showMaximized();
|
|
return a.exec();
|
|
}
|