public void DrawScreen(GpuBuffer gpuBuffer)
    {
        if (!isWebCamReady)
        {
            return;
        }

#if UNITY_STANDALONE_LINUX || UNITY_STANDALONE_OSX || UNITY_ANDROID
        // TODO: create an external texture
        outputTexture.UpdateExternalTexture((IntPtr)gpuBuffer.GetGlTextureBuffer().Name());
#else
        throw new NotSupportedException();
#endif
    }
Example #2
0
 public void DrawScreen(GpuBuffer gpuBuffer)
 {
     // TODO: create an external texture
     outputTexture.UpdateExternalTexture((IntPtr)gpuBuffer.GetGlTextureBuffer().Name());
 }