void onDestroy()
 {
     if (pTrackedCamera != 0)
     {
         trcam_instance.ReleaseVideoStreamingService(pTrackedCamera);
     }
 }
Beispiel #2
0
    private void OnDestroy()
    {
        if (m_streamHandle != 0)
        {
            m_camera.ReleaseVideoStreamingService(m_streamHandle);
        }

        if (m_frameBuffer != IntPtr.Zero)
        {
            Marshal.FreeHGlobal(m_frameBuffer);
        }
    }
Beispiel #3
0
 // Token: 0x06005FB6 RID: 24502 RVA: 0x0021A740 File Offset: 0x00218B40
 public ulong Release()
 {
     if (this.refCount > 0UL && (this.refCount -= 1UL) == 0UL && this._handle != 0UL)
     {
         CVRTrackedCamera trackedCamera = OpenVR.TrackedCamera;
         if (trackedCamera != null)
         {
             trackedCamera.ReleaseVideoStreamingService(this._handle);
         }
         this._handle = 0UL;
     }
     return(this.refCount);
 }
Beispiel #4
0
 void OnDestroy()
 {
     if (pTrackedCamera != 0)
     {
         trcam_instance.ReleaseVideoStreamingService(pTrackedCamera);
     }
     if (grayMat == null)
     {
         return;
     }
     grayMat.Dispose();
     lineMat.Dispose();
     maskMat.Dispose();
     bgMat.Dispose();
     dstMat.Dispose();
     grayPixels = null;
     maskPixels = null;
 }