コード例 #1
0
        public virtual int get_KinectSensor(
            out IKinectSensor sensor
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_get_KinectSensorFunc == null)
            {
                m_get_KinectSensorFunc = (get_KinectSensorFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(get_KinectSensorFunc));
            }
            sensor = new IKinectSensor();
            return(m_get_KinectSensorFunc(m_ptr, out sensor.PtrForNew));
        }
コード例 #2
0
ファイル: kinect.cs プロジェクト: ousttrue/UniKinect
 public static extern int GetDefaultKinectSensor(
     [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(CustomMarshaler <IKinectSensor>))] out IKinectSensor defaultKinectSensor
     );