예제 #1
0
    /* Public interface for use inside C# / JS code */

    /// <summary>
    /// Starts SLAM detection
    /// </summary>
    /// <param name="ssd">address of SendStringDelegate implemented in Unity3D</param>
    /// <param name="spd">address of SendPoseDelegate implemented in Unity3D</param>
    /// <param name="sLogd">address of SendLogDelegate implemented in Unity3D</param>
    /// <param name="arrayPoints">address of SendArrayPointsDelegate implemented in Unity3D</param>
    public static void StartSlam(SendStringDelegate ssd, SendPoseDelegate spd, SendLogDelegate sLogd, SendArrayPointsDelegate arrayPoints)
    {
        // Call plugin only when running on real device
        if (ViablePlatform())
        {
            _StartSlam(ssd, spd, sLogd, arrayPoints);
        }
    }
예제 #2
0
 private static extern void _StartSlam(SendStringDelegate ssd, SendPoseDelegate spd, SendLogDelegate sLogd, SendArrayPointsDelegate arrayPoints);