Exemple #1
0
 // Token: 0x06002D5F RID: 11615 RVA: 0x000DFE2C File Offset: 0x000DE22C
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <LongExposureInfraredFrameReference>(this._pNative);
     LongExposureInfraredFrameReference.Windows_Kinect_LongExposureInfraredFrameReference_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Exemple #2
0
        // Token: 0x06002D63 RID: 11619 RVA: 0x000DFEA0 File Offset: 0x000DE2A0
        public LongExposureInfraredFrame AcquireFrame()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("LongExposureInfraredFrameReference");
            }
            IntPtr intPtr = LongExposureInfraredFrameReference.Windows_Kinect_LongExposureInfraredFrameReference_AcquireFrame(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <LongExposureInfraredFrame>(intPtr, (IntPtr n) => new LongExposureInfraredFrame(n)));
        }
Exemple #3
0
 // Token: 0x06002D5A RID: 11610 RVA: 0x000DFDD8 File Offset: 0x000DE1D8
 internal LongExposureInfraredFrameReference(IntPtr pNative)
 {
     this._pNative = pNative;
     LongExposureInfraredFrameReference.Windows_Kinect_LongExposureInfraredFrameReference_AddRefObject(ref this._pNative);
 }