Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                if (DepthStencilBuffer != null)
                {
                    DepthStencilBuffer.Dispose();
                }
                if (RenderTarget != null)
                {
                    RenderTarget.Dispose();
                }
                if (HMD != null)
                {
                    HMD.Dispose();
                }
                OVR.Shutdown();
            }
            _disposed = true;
        }
Beispiel #2
0
 protected override void Dispose(bool disposeManagedResources)
 {
     base.Dispose(disposeManagedResources);
     if (disposeManagedResources)
     {
         OVR.Shutdown();
     }
 }
Beispiel #3
0
        protected override void Dispose(bool disposeManagedResources)
        {
            base.Dispose(disposeManagedResources);
            if (disposeManagedResources)
            {
                // Release the HMD
                hmd.Dispose();

                // Shutdown the OVR Library
                OVR.Shutdown();
            }
        }