-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (25 loc) · 772 Bytes
/
Copy pathmain.cpp
File metadata and controls
28 lines (25 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include "connected.h"
#include <QApplication>
#include <QWindow>
//#define LOOKINGGLASS
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//set the GL Specs needed, prevents startup crash
QSurfaceFormat format;
format.setDepthBufferSize(24);
format.setStencilBufferSize(8);
format.setVersion(3, 2);
format.setProfile(QSurfaceFormat::CoreProfile);
QSurfaceFormat::setDefaultFormat(format);
Connected w;
w.show();
#ifdef LOOKINGGLASS
//make looking glass version have no borders and be fullscreen
w.windowHandle()->setScreen(qApp->screens()[1]);
w.windowHandle()->setFlag(Qt::FramelessWindowHint);
w.setAttribute(Qt::WA_NoSystemBackground, true);
w.showFullScreen();
#endif
return a.exec();
}