コード例 #1
0
        private static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
        {
            IntPtr ptr;

            INTERNAL_CALL_Instantiate_Internal(showHolograms, onCreatedCallback, out ptr);
            return(ptr);
        }
コード例 #2
0
        public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
        {
            NRPhotoCapture photocapture = new NRPhotoCapture();

            photocapture.m_CaptureContext = FrameCaptureContextFactory.Create();
            onCreatedCallback?.Invoke(photocapture);
        }
コード例 #3
0
 public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
 {
     if (onCreatedCallback == null)
     {
         throw new ArgumentNullException("onCreatedCallback");
     }
     Instantiate_Internal(showHolograms, onCreatedCallback);
 }
コード例 #4
0
 public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
 {
     if (onCreatedCallback == null)
     {
         throw new ArgumentNullException("onCreatedCallback");
     }
     Instantiate_Internal(showHolograms, onCreatedCallback);
 }
コード例 #5
0
 private static void InvokeOnCreatedResourceDelegate(OnCaptureResourceCreatedCallback callback, IntPtr nativePtr)
 {
     if (nativePtr == IntPtr.Zero)
     {
         callback(null);
     }
     else
     {
         callback(new PhotoCapture(nativePtr));
     }
 }
コード例 #6
0
        public static void CreateAsync(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
        {
            NRPhotoCapture photocapture = new NRPhotoCapture();

            photocapture.CaptureBehaviour = NRCaptureBehaviour.Create(() =>
            {
                if (onCreatedCallback != null)
                {
                    onCreatedCallback(photocapture);
                }
            });
        }
コード例 #7
0
 private static extern void INTERNAL_CALL_Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback, out IntPtr value);
コード例 #8
0
 private static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback)
 {
     IntPtr ptr;
     INTERNAL_CALL_Instantiate_Internal(showHolograms, onCreatedCallback, out ptr);
     return ptr;
 }
コード例 #9
0
 private static void InvokeOnCreatedResourceDelegate(OnCaptureResourceCreatedCallback callback, IntPtr nativePtr)
 {
     if (nativePtr == IntPtr.Zero)
     {
         callback(null);
     }
     else
     {
         callback(new PhotoCapture(nativePtr));
     }
 }
コード例 #10
0
 private static extern void INTERNAL_CALL_Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback, out IntPtr value);
コード例 #11
0
 private extern static IntPtr Instantiate_Internal(bool showHolograms, OnCaptureResourceCreatedCallback onCreatedCallback);