internal HandsGenerator(Context context, IntPtr nodeHandle, bool addRef) : base(context, nodeHandle, addRef) { this.internalHandCreate = new SafeNativeMethods.XnHandCreate(this.InternalHandCreate); this.internalHandUpdate = new SafeNativeMethods.XnHandUpdate(this.InternalHandUpdate); this.internalHandDestroy = new SafeNativeMethods.XnHandDestroy(this.InternalHandDestroy); if (IsCapabilitySupported(Capabilities.HandTouchingFOVEdge)) { m_HandTouchingFOVEdgeCapability = new HandTouchingFOVEdgeCapability(this); } else { m_HandTouchingFOVEdgeCapability = null; } }
public override void Dispose() { if (m_HandTouchingFOVEdgeCapability != null) { m_HandTouchingFOVEdgeCapability.InternalDispose(); m_HandTouchingFOVEdgeCapability = null; } base.Dispose(); }
internal HandsGenerator(Context context, IntPtr nodeHandle, bool addRef) : base(context, nodeHandle, addRef) { this.internalHandCreate = new SafeNativeMethods.XnHandCreate(this.InternalHandCreate); this.internalHandUpdate = new SafeNativeMethods.XnHandUpdate(this.InternalHandUpdate); this.internalHandDestroy = new SafeNativeMethods.XnHandDestroy(this.InternalHandDestroy); if (IsCapabilitySupported(Capabilities.HandTouchingFOVEdge)) m_HandTouchingFOVEdgeCapability = new HandTouchingFOVEdgeCapability(this); else m_HandTouchingFOVEdgeCapability = null; }