Exemplo n.º 1
0
 // Token: 0x06002B03 RID: 11011 RVA: 0x000D9364 File Offset: 0x000D7764
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <BodyFrameReference>(this._pNative);
     BodyFrameReference.Windows_Kinect_BodyFrameReference_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Exemplo n.º 2
0
        // Token: 0x06002B07 RID: 11015 RVA: 0x000D93D8 File Offset: 0x000D77D8
        public BodyFrame AcquireFrame()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("BodyFrameReference");
            }
            IntPtr intPtr = BodyFrameReference.Windows_Kinect_BodyFrameReference_AcquireFrame(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <BodyFrame>(intPtr, (IntPtr n) => new BodyFrame(n)));
        }
Exemplo n.º 3
0
 // Token: 0x06002AFE RID: 11006 RVA: 0x000D9310 File Offset: 0x000D7710
 internal BodyFrameReference(IntPtr pNative)
 {
     this._pNative = pNative;
     BodyFrameReference.Windows_Kinect_BodyFrameReference_AddRefObject(ref this._pNative);
 }