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); }
public static VideoStream Create(Device device, Device.SensorType sensorType) { return(device.CreateVideoStream(sensorType)); }
static extern OpenNI.Status VideoStream_create(out IntPtr objectHandler, IntPtr device, Device.SensorType sensorType);