Exemple #1
0
        public bool Render()
        {
            bool success = false;

            if (running)
            {
                if (d3dProvider != null)
                {
                    var deviceReady = d3dProvider.TestDevice();
                    if (deviceReady)
                    {
                        d3dProvider.OnNewDataAvailable();
                        success = true;
                    }
                    else
                    {
                        tracer.Debug("TestDevice() == false");

                        d3dProvider.ReInit(videoSource.SharedTexture);
                    }
                }
                else
                {
                    tracer.Debug("d3dProvider == null");
                }
            }
            else
            {
                tracer.Debug("running == false");
            }

            return(success);
        }
 private void VideoReceiver_UpdateBuffer()
 {
     d3dProvider?.OnNewDataAvailable();
     //d3dRenderer?.Update();
 }