Ejemplo n.º 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!");
            }
        }
Ejemplo n.º 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!");
            }
        }
Ejemplo n.º 3
0
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Ejemplo n.º 4
0
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);
Ejemplo n.º 5
0
 public static int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback)
 {
     return Common.ErrorType.TANGO_SUCCESS;
 }
Ejemplo n.º 6
0
 public static extern int TangoService_connectOnPointCloudAvailable(APIOnPointCloudAvailable callback);