SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
731 B

4 years ago
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace UnityEngine.XR.ARCore
  4. {
  5. internal static class RcoApi
  6. {
  7. #if UNITY_ANDROID && !UNITY_EDITOR
  8. [DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain")]
  9. public static extern int Retain(IntPtr ptr);
  10. [DllImport("UnityARCore", EntryPoint="UnityARCore_rco_release")]
  11. public static extern int Release(IntPtr ptr);
  12. [DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain_count")]
  13. public static extern int RetainCount(IntPtr ptr);
  14. #else
  15. public static int Retain(IntPtr ptr) => 0;
  16. public static int Release(IntPtr ptr) => 0;
  17. public static int RetainCount(IntPtr ptr) => 0;
  18. #endif
  19. }
  20. }