Beispiel #1
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (m_capture != null)
     {
         m_capture.Dispose();
         m_capture = null;
     }
     if (m_Scene != null)
     {
         m_Scene.Dispose();
         m_Scene = null;
     }
     Send send = new Send();
     send.RequestStop();
 }
Beispiel #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            m_capture = new DSVideoCaptureVMR9(m_Scene.Direct3DDevice, m_leftEyeDevicePath, m_rightEyeDevicePath);

            m_capture.OnSurfaceReady += new VMR9.SurfaceReadyHandler(m_Scene.OnSurfaceReady);

            m_capture.Start();
        }