示例#1
0
bool oculusViaOpenVR() {
    static const QString DEBUG_FLAG("HIFI_DEBUG_OPENVR");
    static bool enableDebugOpenVR = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
    return enableDebugOpenVR && isOculusPresent() && vr::VR_IsHmdPresent();
}
示例#2
0
bool openVrSupported() {
    static const QString DEBUG_FLAG("HIFI_DEBUG_OPENVR");
    static bool enableDebugOpenVR = QProcessEnvironment::systemEnvironment().contains(DEBUG_FLAG);
    return (enableDebugOpenVR || !isOculusPresent()) && vr::VR_IsHmdPresent();
}
示例#3
0
bool OpenVrDisplayPlugin::isSupported() const {
    return !isOculusPresent() && vr::VR_IsHmdPresent();
}