/// <summary> /// Updates the next frame depth map that's waiting for data with any state changes /// </summary> protected void UpdateNextFrameDepthMap() { if (this.DataBuffer == IntPtr.Zero) { // have to set our own buffer as the depth buffer this.nextFrameDepthMap = new DepthMap(this.DataFormat); KinectNative.freenect_set_depth_buffer(this.parentDevice.devicePointer, this.nextFrameDepthMap.DataPointer); } else { // already have a buffer from user this.nextFrameDepthMap = new DepthMap(this.DataFormat, this.DataBuffer); } }
/// <summary> /// constructor /// </summary> /// <param name="timestamp"> /// A <see cref="DateTime"/> /// </param> /// <param name="depthMap"> /// A <see cref="DepthMap"/> /// </param> public DataReceivedEventArgs(DateTime timestamp, DepthMap depthMap) { this.Timestamp = timestamp; this.DepthMap = depthMap; }
/// <summary> /// Updates the next frame depth map that's waiting for data with any state changes /// </summary> protected void UpdateNextFrameDepthMap() { if(this.DataBuffer == IntPtr.Zero) { // have to set our own buffer as the depth buffer this.nextFrameDepthMap = new DepthMap(this.DataFormat); KinectNative.freenect_set_depth_buffer(this.parentDevice.devicePointer, this.nextFrameDepthMap.DataPointer); } else { // already have a buffer from user this.nextFrameDepthMap = new DepthMap(this.DataFormat, this.DataBuffer); } }