/// <summary> /// Get the Distortion of rgbcamera. /// </summary> /// <returns></returns> public static NRDistortionParams GetRGBCameraDistortion() { NRDistortionParams result = new NRDistortionParams(); NRDevice.Instance.NativeHMD.GetCameraDistortion(NativeEye.RGB, ref result); return(result); }
public bool GetCameraDistortion(NativeEye eye, ref NRDistortionParams distortion) { if (eye != NativeEye.RGB) { Debug.LogError("[NativeHMD] Only for rgb camera now. Not support this camera:" + eye.ToString()); return(false); } var result = NativeApi.NRHMDGetCameraDistortionParams(m_HmdHandle, (int)eye, ref distortion); return(true); }
public static extern NativeResult NRHMDGetCameraDistortionParams( UInt64 hmd_handle, int eye, ref NRDistortionParams out_params);