コード例 #1
0
 public static VideoStreamTexture Undistorted(int deviceIndex = (int)OpenVR.k_unTrackedDeviceIndex_Hmd)
 {
     if (undistorted == null)
     {
         undistorted = new VideoStreamTexture[OpenVR.k_unMaxTrackedDeviceCount];
     }
     if (undistorted[deviceIndex] == null)
     {
         undistorted[deviceIndex] = new VideoStreamTexture((uint)deviceIndex, true);
     }
     return(undistorted[deviceIndex]);
 }
コード例 #2
0
	public static VideoStreamTexture Undistorted(int deviceIndex = (int)OpenVR.k_unTrackedDeviceIndex_Hmd)
	{
		if (undistorted == null)
			undistorted = new VideoStreamTexture[OpenVR.k_unMaxTrackedDeviceCount];
		if (undistorted[deviceIndex] == null)
			undistorted[deviceIndex] = new VideoStreamTexture((uint)deviceIndex, true);
		return undistorted[deviceIndex];
	}