コード例 #1
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public CVRCompositor VRCompositor()
 {
     this.CheckClear();
     if (this.m_pVRCompositor == null)
     {
         EVRInitError eVRInitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRCompositor_013", ref eVRInitError);
         if (genericInterface != IntPtr.Zero && eVRInitError == EVRInitError.None)
         {
             this.m_pVRCompositor = new CVRCompositor(genericInterface);
         }
     }
     return(this.m_pVRCompositor);
 }
コード例 #2
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public CVRSystem VRSystem()
 {
     this.CheckClear();
     if (this.m_pVRSystem == null)
     {
         EVRInitError eVRInitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRSystem_011", ref eVRInitError);
         if (genericInterface != IntPtr.Zero && eVRInitError == EVRInitError.None)
         {
             this.m_pVRSystem = new CVRSystem(genericInterface);
         }
     }
     return(this.m_pVRSystem);
 }
コード例 #3
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public CVRChaperoneSetup VRChaperoneSetup()
 {
     this.CheckClear();
     if (this.m_pVRChaperoneSetup == null)
     {
         EVRInitError eVRInitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRChaperoneSetup_005", ref eVRInitError);
         if (genericInterface != IntPtr.Zero && eVRInitError == EVRInitError.None)
         {
             this.m_pVRChaperoneSetup = new CVRChaperoneSetup(genericInterface);
         }
     }
     return(this.m_pVRChaperoneSetup);
 }
コード例 #4
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public CVRApplications VRApplications()
 {
     this.CheckClear();
     if (this.m_pVRApplications == null)
     {
         EVRInitError eVRInitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRApplications_004", ref eVRInitError);
         if (genericInterface != IntPtr.Zero && eVRInitError == EVRInitError.None)
         {
             this.m_pVRApplications = new CVRApplications(genericInterface);
         }
     }
     return(this.m_pVRApplications);
 }
コード例 #5
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public CVRExtendedDisplay VRExtendedDisplay()
 {
     this.CheckClear();
     if (this.m_pVRExtendedDisplay == null)
     {
         EVRInitError eVRInitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRExtendedDisplay_001", ref eVRInitError);
         if (genericInterface != IntPtr.Zero && eVRInitError == EVRInitError.None)
         {
             this.m_pVRExtendedDisplay = new CVRExtendedDisplay(genericInterface);
         }
     }
     return(this.m_pVRExtendedDisplay);
 }
コード例 #6
0
 // Token: 0x06002FAB RID: 12203 RVA: 0x000CA238 File Offset: 0x000C8438
 public CVRTrackedCamera VRTrackedCamera()
 {
     this.CheckClear();
     if (this.m_pVRTrackedCamera == null)
     {
         EVRInitError evrinitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRTrackedCamera_003", ref evrinitError);
         if (genericInterface != IntPtr.Zero && evrinitError == EVRInitError.None)
         {
             this.m_pVRTrackedCamera = new CVRTrackedCamera(genericInterface);
         }
     }
     return(this.m_pVRTrackedCamera);
 }
コード例 #7
0
 // Token: 0x06002FAA RID: 12202 RVA: 0x000CA1EC File Offset: 0x000C83EC
 public CVRScreenshots VRScreenshots()
 {
     this.CheckClear();
     if (this.m_pVRScreenshots == null)
     {
         EVRInitError evrinitError     = EVRInitError.None;
         IntPtr       genericInterface = OpenVRInterop.GetGenericInterface("FnTable:IVRScreenshots_001", ref evrinitError);
         if (genericInterface != IntPtr.Zero && evrinitError == EVRInitError.None)
         {
             this.m_pVRScreenshots = new CVRScreenshots(genericInterface);
         }
     }
     return(this.m_pVRScreenshots);
 }
コード例 #8
0
            public CVRNotifications VRNotifications()
            {
                CheckClear();
                if (m_pVRNotifications == null)
                {
                    var eError     = EVRInitError.None;
                    var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix + IVRNotifications_Version, ref eError);
                    if (pInterface != IntPtr.Zero && eError == EVRInitError.None)
                    {
                        m_pVRNotifications = new CVRNotifications(pInterface);
                    }
                }

                return(m_pVRNotifications);
            }
コード例 #9
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static uint GetInitToken()
 {
     return(OpenVRInterop.GetInitToken());
 }
コード例 #10
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static bool IsInterfaceVersionValid(string pchInterfaceVersion)
 {
     return(OpenVRInterop.IsInterfaceVersionValid(pchInterfaceVersion));
 }
コード例 #11
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static IntPtr GetGenericInterface(string pchInterfaceVersion, ref EVRInitError peError)
 {
     return(OpenVRInterop.GetGenericInterface(pchInterfaceVersion, ref peError));
 }
コード例 #12
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static string GetStringForHmdError(EVRInitError error)
 {
     return(Marshal.PtrToStringAnsi(OpenVRInterop.GetStringForHmdError(error)));
 }
コード例 #13
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static bool IsRuntimeInstalled()
 {
     return(OpenVRInterop.IsRuntimeInstalled());
 }
コード例 #14
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static bool IsHmdPresent()
 {
     return(OpenVRInterop.IsHmdPresent());
 }
コード例 #15
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static void ShutdownInternal()
 {
     OpenVRInterop.ShutdownInternal();
 }
コード例 #16
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public static uint InitInternal(ref EVRInitError peError, EVRApplicationType eApplicationType)
 {
     return(OpenVRInterop.InitInternal(ref peError, eApplicationType));
 }