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

using System;
using System.Runtime.InteropServices;
namespace UnityEngine.XR.ARCore
{
internal static class RcoApi
{
#if UNITY_ANDROID && !UNITY_EDITOR
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain")]
public static extern int Retain(IntPtr ptr);
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_release")]
public static extern int Release(IntPtr ptr);
[DllImport("UnityARCore", EntryPoint="UnityARCore_rco_retain_count")]
public static extern int RetainCount(IntPtr ptr);
#else
public static int Retain(IntPtr ptr) => 0;
public static int Release(IntPtr ptr) => 0;
public static int RetainCount(IntPtr ptr) => 0;
#endif
}
}