MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / main

Function main

samples/helloworldoverlay/main.cpp:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <QtWidgets/QApplication>
4
5int main(int argc, char *argv[])
6{
7 QApplication a(argc, argv);
8 OverlayWidget *pOverlayWidget = new OverlayWidget;
9
10 COpenVROverlayController::SharedInstance()->Init();
11
12 COpenVROverlayController::SharedInstance()->SetWidget( pOverlayWidget );
13
14 // don't show widgets that you're going display in an overlay
15 //w.show();
16
17 return a.exec();
18}

Callers

nothing calls this directly

Calls 2

SetWidgetMethod · 0.80
InitMethod · 0.45

Tested by

no test coverage detected