Ejemplo n.º 1
0
 // Token: 0x06002B63 RID: 11107 RVA: 0x000DA69C File Offset: 0x000D8A9C
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <BodyIndexFrameReference>(this._pNative);
     BodyIndexFrameReference.Windows_Kinect_BodyIndexFrameReference_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Ejemplo n.º 2
0
        // Token: 0x06002B67 RID: 11111 RVA: 0x000DA710 File Offset: 0x000D8B10
        public BodyIndexFrame AcquireFrame()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("BodyIndexFrameReference");
            }
            IntPtr intPtr = BodyIndexFrameReference.Windows_Kinect_BodyIndexFrameReference_AcquireFrame(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <BodyIndexFrame>(intPtr, (IntPtr n) => new BodyIndexFrame(n)));
        }
Ejemplo n.º 3
0
 // Token: 0x06002B5E RID: 11102 RVA: 0x000DA648 File Offset: 0x000D8A48
 internal BodyIndexFrameReference(IntPtr pNative)
 {
     this._pNative = pNative;
     BodyIndexFrameReference.Windows_Kinect_BodyIndexFrameReference_AddRefObject(ref this._pNative);
 }