示例#1
0
        private void initializeDeviceHandles()
        {
            var connection = Connection.GetConnection(0);

            for (int i = 0; i < connection.Devices.Count; i++)
            {
                bool containsHandle = _deviceHandles.ContainsValue(connection.Devices[i].Handle);
                bool containsKey    = _deviceHandles.ContainsKey(i + 1);

                if (!containsHandle)
                {
                    if (containsKey)
                    {
                        _deviceHandles.Remove(i + 1);
                    }
                    _deviceHandles.Add(i + 1, connection.Devices[i].Handle);

                    LeapTextureData textureData = new LeapTextureData();
                    textureData.leapImageRetriever = this;
                    _eyeTextureData.TextureData.Add(textureData);
                }
            }
        }
 public EyeTextureData()
 {
     BrightTexture = new LeapTextureData();
       RawTexture = new LeapTextureData();
       Distortion = new LeapDistortionData();
 }
 public EyeTextureData()
 {
     BrightTexture = new LeapTextureData();
     RawTexture    = new LeapTextureData();
     Distortion    = new LeapDistortionData();
 }
 public EyeTextureData()
 {
     TextureData = new LeapTextureData();
     Distortion  = new LeapDistortionData();
 }