예제 #1
0
 private void DiscardRenderer()
 {
     if (m_render != null)
     {
         m_render.Dispose();
         m_render = null;
     }
 }
예제 #2
0
 private void InitRenderer()
 {
     Invoke((Action)delegate
     {
         m_render = new D3D9Renderer(this.Handle);
     });
     m_render.RegisterDeviceLostCallback(null, OnDeviceRestored);
     m_render.CreateVideoSurface(m_format.Width, m_format.Height, PixelFormat.YV12, m_source.SAR.Ratio);
 }
예제 #3
0
 private void CreateRenderer()
 {
     DiscardRenderer();
     m_render = new D3D9Renderer(IntPtr.Zero);
     m_render.DisplayMode = VideoDisplayMode.KeepAspectRatio;
 }