/// <summary>
        /// Set the C callback for the Tango depth interface.
        /// </summary>
        /// <param name="callback">Callback method.</param>
        internal static void SetCallback(APIOnPointCloudAvailable callback)
        {
            // The TangoCore in release-rana garbage initializes the PointCloudParcel
            // callback, causing crashes.  This fixes that issue.
            API.TangoServiceHidden_connectOnPointCloudParcelAvailable(IntPtr.Zero);

            int returnValue = API.TangoService_connectOnPointCloudAvailable(callback);
            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log("DepthProvider.SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log("DepthProvider.SetCallback() Callback was set!");
            }
        }
Beispiel #2
0
        /// <summary>
        /// Set the C callback for the Tango depth interface.
        /// </summary>
        /// <param name="callback">Callback method.</param>
        internal static void SetCallback(APIOnPointCloudAvailable callback)
        {
            // The TangoCore in release-rana garbage initializes the PointCloudParcel
            // callback, causing crashes.  This fixes that issue.
            API.TangoServiceHidden_connectOnPointCloudParcelAvailable(IntPtr.Zero);

            int returnValue = API.TangoService_connectOnPointCloudAvailable(callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log("DepthProvider.SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log("DepthProvider.SetCallback() Callback was set!");
            }
        }
Beispiel #3
0
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Beispiel #4
0
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return Common.ErrorType.TANGO_SUCCESS;
 }
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);