Exemple #1
0
 // Token: 0x06002BDA RID: 11226 RVA: 0x000DBC18 File Offset: 0x000DA018
 private void Dispose(bool disposing)
 {
     if (this._pNative == IntPtr.Zero)
     {
         return;
     }
     this.__EventCleanup();
     NativeObjectCache.RemoveObject <ColorFrameReference>(this._pNative);
     ColorFrameReference.Windows_Kinect_ColorFrameReference_ReleaseObject(ref this._pNative);
     this._pNative = IntPtr.Zero;
 }
Exemple #2
0
        // Token: 0x06002BDE RID: 11230 RVA: 0x000DBC8C File Offset: 0x000DA08C
        public ColorFrame AcquireFrame()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("ColorFrameReference");
            }
            IntPtr intPtr = ColorFrameReference.Windows_Kinect_ColorFrameReference_AcquireFrame(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <ColorFrame>(intPtr, (IntPtr n) => new ColorFrame(n)));
        }
Exemple #3
0
 // Token: 0x06002BD5 RID: 11221 RVA: 0x000DBBC4 File Offset: 0x000D9FC4
 internal ColorFrameReference(IntPtr pNative)
 {
     this._pNative = pNative;
     ColorFrameReference.Windows_Kinect_ColorFrameReference_AddRefObject(ref this._pNative);
 }