Пример #1
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!");
            }
        }
Пример #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!");
            }
        }
Пример #3
0
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Пример #4
0
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);
Пример #5
0
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return Common.ErrorType.TANGO_SUCCESS;
 }
Пример #6
0
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);