コード例 #1
0
ファイル: OpenVR.cs プロジェクト: ahvonenj/TheForest
 public void Clear()
 {
     this.m_pVRSystem          = null;
     this.m_pVRChaperone       = null;
     this.m_pVRChaperoneSetup  = null;
     this.m_pVRCompositor      = null;
     this.m_pVROverlay         = null;
     this.m_pVRRenderModels    = null;
     this.m_pVRExtendedDisplay = null;
     this.m_pVRSettings        = null;
     this.m_pVRApplications    = null;
 }
コード例 #2
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);
 }
コード例 #3
0
		public CVRChaperoneSetup VRChaperoneSetup()
		{
			CheckClear();
			if (m_pVRChaperoneSetup == null)
			{
				var eError = EVRInitError.None;
				var pInterface = OpenVRInterop.GetGenericInterface(FnTable_Prefix+IVRChaperoneSetup_Version, ref eError);
				if (pInterface != IntPtr.Zero && eError == EVRInitError.None)
					m_pVRChaperoneSetup = new CVRChaperoneSetup(pInterface);
			}
			return m_pVRChaperoneSetup;
		}
コード例 #4
0
ファイル: openvr_api.cs プロジェクト: FarmHackNL/one-day-fly
 public void Clear()
 {
     m_pVRSystem = null;
     m_pVRChaperone = null;
     m_pVRChaperoneSetup = null;
     m_pVRCompositor = null;
     m_pVROverlay = null;
     m_pVRRenderModels = null;
     m_pVRExtendedDisplay = null;
     m_pVRSettings = null;
     m_pVRApplications = null;
 }
コード例 #5
0
ファイル: OpenVR.cs プロジェクト: GameDiffs/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;
 }