Initial code for supporting an alternative QtQuick based UI for OpenVR

This commit is contained in:
dsc
2021-04-05 13:35:00 +02:00
parent 69c371938b
commit ede112135c
19 changed files with 1034 additions and 46 deletions
+5 -2
View File
@@ -114,12 +114,15 @@ if (AttachConsole(ATTACH_PARENT_PROCESS)) {
qRegisterMetaType<QVector<QString>>();
#ifdef QML
qputenv("QML_DISABLE_DISK_CACHE", "1");
#endif
if(openVREnabled) {
#ifdef HAS_OPENVR
QApplication vr_app(argc, argv);
auto *ctx = new AppContext(&parser);
auto *vr = new wowletVR::WowletVR(ctx, &parser, &vr_app);
qDebug() << "Context: " << qgetenv("QMLSCENE_DEVICE");
auto *vr = new wowletvr::WowletVR(ctx, &parser, &vr_app);
if(vr->errors.length() > 0)
return 1;