ITrackingDataProvider.cs 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /****************************************************************************
  2. * Copyright 2019 Nreal Techonology Limited. All rights reserved.
  3. *
  4. * This file is part of NRSDK.
  5. *
  6. * https://www.nreal.ai/
  7. *
  8. *****************************************************************************/
  9. namespace NRKernal
  10. {
  11. using System;
  12. using UnityEngine;
  13. public interface ITrackingDataProvider : ILifecycle
  14. {
  15. bool GetHeadPose(ref Pose pose, UInt64 timestamp);
  16. ulong GetHMDTimeNanos();
  17. bool GetFramePresentHeadPose(ref Pose pose, ref LostTrackingReason lostReason, ref UInt64 timestamp);
  18. bool GetFramePresentTimeByCount(int count, ref UInt64 timestamp);
  19. bool InitTrackingMode(TrackingMode mode);
  20. bool SwitchTrackingMode(TrackingMode mode);
  21. void Recenter();
  22. }
  23. }