コード例 #1
0
ファイル: DepthFrame.cs プロジェクト: Smoothstep/VRChat
        // Token: 0x06002916 RID: 10518 RVA: 0x000D30E8 File Offset: 0x000D14E8
        public KinectBuffer LockImageBuffer()
        {
            if (this._pNative == IntPtr.Zero)
            {
                throw new ObjectDisposedException("DepthFrame");
            }
            IntPtr intPtr = DepthFrame.Windows_Kinect_DepthFrame_LockImageBuffer(this._pNative);

            ExceptionHelper.CheckLastError();
            if (intPtr == IntPtr.Zero)
            {
                return(null);
            }
            return(NativeObjectCache.CreateOrGetObject <KinectBuffer>(intPtr, (IntPtr n) => new KinectBuffer(n)));
        }