Beispiel #1
0
        internal static VideoStream Private_Create(Device device, Device.SensorType sensorType)
        {
            IntPtr handle;

            OpenNI.throwIfError(VideoStream_create(out handle, device.Handle, sensorType));
            VideoStream vs = new VideoStream(handle);

            vs.ParentDevice   = device;
            vs.handler_events = VideoStream_RegisterListener(handle, vs.internal_NewFrame);
            return(vs);
        }
Beispiel #2
0
 public static VideoStream Create(Device device, Device.SensorType sensorType)
 {
     return(device.CreateVideoStream(sensorType));
 }
Beispiel #3
0
 static extern OpenNI.Status VideoStream_create(out IntPtr objectHandler, IntPtr device, Device.SensorType sensorType);