Exemplo n.º 1
0
            public void UpdateTexture(Image image, LeapPostProcess postProcessing, bool applyTexture = true)
            {
                byte[] array = image.Data(Image.CameraType.LEFT);

                if (postProcessing != null)
                {
                    postProcessing.OnNewImage(image, array);
                }

                if (applyTexture)
                {
                    if (_combinedTexture != null)
                    {
                        _combinedTexture.LoadRawTextureData(array);
                        _combinedTexture.Apply();
                    }
                    else
                    {
                        //Create the Texture2D if it does not exist yet
                        Reconstruct(image, "_LeapGlobalRawTexture", "", false);
                    }
                }
            }
Exemplo n.º 2
0
 public void UpdateTextures(Image image, LeapPostProcess postProcessing, bool applyTexture = true)
 {
     TextureData[((int)image.DeviceID) - 1].UpdateTexture(image, postProcessing, applyTexture);
 }