mirror of
https://github.com/overte-org/overte.git
synced 2025-04-09 02:33:19 +02:00
remove enter VR mode and leave VR mode
This commit is contained in:
parent
d420674edd
commit
d09b8f8c2e
2 changed files with 0 additions and 46 deletions
|
@ -104,46 +104,3 @@ void GVRInterface::handleApplicationStateChange(Qt::ApplicationState state) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void GVRInterface::enterVRMode() {
|
||||
// // Reload local preferences, in case we are coming back from a
|
||||
// // switch to the dashboard that changed them.
|
||||
// ovr_UpdateLocalPreferences();
|
||||
//
|
||||
// // Default vrModeParms
|
||||
// ovrModeParms vrModeParms;
|
||||
// vrModeParms.AsynchronousTimeWarp = true;
|
||||
// vrModeParms.AllowPowerSave = true;
|
||||
// vrModeParms.DistortionFileName = NULL;
|
||||
// vrModeParms.EnableImageServer = false;
|
||||
// vrModeParms.CpuLevel = 2;
|
||||
// vrModeParms.GpuLevel = 2;
|
||||
// vrModeParms.GameThreadTid = 0;
|
||||
//
|
||||
// QPlatformNativeInterface* interface = QApplication::platformNativeInterface();
|
||||
//
|
||||
// vrModeParms.ActivityObject = (jobject) interface->nativeResourceForIntegration("QtActivity");
|
||||
//
|
||||
// _hmdInfo = new ovrHmdInfo;
|
||||
//
|
||||
// const char* cpuLevelStr = ovr_GetLocalPreferenceValueForKey( LOCAL_PREF_DEV_CPU_LEVEL, "-1" );
|
||||
// const int cpuLevel = atoi( cpuLevelStr );
|
||||
// if ( cpuLevel >= 0 ) {
|
||||
// vrModeParms.CpuLevel = cpuLevel;
|
||||
// qDebug() << "Local Preferences: Setting cpuLevel" << vrModeParms.CpuLevel;
|
||||
// }
|
||||
//
|
||||
// const char* gpuLevelStr = ovr_GetLocalPreferenceValueForKey( LOCAL_PREF_DEV_GPU_LEVEL, "-1" );
|
||||
// const int gpuLevel = atoi( gpuLevelStr );
|
||||
// if ( gpuLevel >= 0 ) {
|
||||
// vrModeParms.GpuLevel = gpuLevel;
|
||||
// qDebug() << "Local Preferences: Setting gpuLevel" << vrModeParms.GpuLevel;
|
||||
// }
|
||||
//
|
||||
// _ovr = ovr_EnterVrMode(vrModeParms, _hmdInfo);
|
||||
}
|
||||
|
||||
void GVRInterface::leaveVRMode() {
|
||||
|
||||
// ovr_LeaveVrMode(_ovr);
|
||||
}
|
||||
|
|
|
@ -34,9 +34,6 @@ private slots:
|
|||
void handleApplicationStateChange(Qt::ApplicationState state);
|
||||
void idle();
|
||||
private:
|
||||
void enterVRMode();
|
||||
void leaveVRMode();
|
||||
|
||||
RenderingClient* _client;
|
||||
bool _inVRMode;
|
||||
|
||||
|
|
Loading…
Reference in a new issue