예제 #1
0
        protected override void Dispose(bool disposing)
        {
            if (!designMode)
            {
                if (_graphicsDeviceService != null)
                {
#if GL
                    _graphicsDeviceService.SDLPlatform.Exit();
                    _graphicsDeviceService.SDLPlatform.Dispose();
#endif
                    _graphicsDeviceService.Release(disposing);
                    _graphicsDeviceService = null;
                }
#if GL
                _Intervall.Stop();
                _Intervall.Enabled = false;
                _Intervall.Dispose();

                if (_chain != null)
                {
                    _chain.Dispose();
                }
#endif
            }
            base.Dispose(disposing);
        }
 protected override void Dispose(bool disposing)
 {
     if (_graphicsDeviceService != null)
     {
         _graphicsDeviceService.Release(disposing);
         _graphicsDeviceService = null;
     }
     base.Dispose(disposing);
 }
예제 #3
0
 protected virtual void Dispose(bool disposing)
 {
     if (!isDisposed)
     {
         if (GraphicsDeviceService != null)
         {
             GraphicsDeviceService.Release(disposing);
         }
         isDisposed = true;
     }
 }
예제 #4
0
        protected override void Dispose(bool disposing)
        {
            // Release our reference to the GraphicsDeviceService if we have one
            if (_graphicsService != null)
            {
                _graphicsService.Release(disposing);
                _graphicsService = null;
            }

            SizeChanged -= OnXnaWindowHostSizeChanged;
            Loaded      -= OnXnaWindowHostLoaded;

            base.Dispose(disposing);
        }
예제 #5
0
        protected override void Dispose(bool disposing)
        {
            if (_deviceService != null)
            {
                try {
                    _deviceService.Release();
                }
                catch { }

                _deviceService = null;
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            // Release our reference to the GraphicsDeviceService if we have one
            if (graphicsService != null)
            {
                graphicsService.Release(disposing);
                graphicsService = null;
            }

            // Unhook the Rendering event so we no longer attempt to draw
            CompositionTarget.Rendering -= CompositionTarget_Rendering;

            base.Dispose(disposing);
        }
예제 #7
0
 protected virtual void Dispose(bool disposing)
 {
     if (!_isDisposed)
     {
         if (_renderTarget != null)
         {
             _renderTarget.Dispose();
         }
         if (_graphicsDeviceService != null)
         {
             _graphicsDeviceService.Release(disposing);
         }
         _isDisposed = true;
     }
 }
예제 #8
0
 private void Dispose(bool disposing)
 {
     if (!_isDisposed)
     {
         if (_renderTarget != null)
         {
             _renderTarget.Dispose();
         }
         if (_renderTargetD3D9 != null)
         {
             _renderTargetD3D9.Dispose();
         }
         if (_graphicsDeviceService != null)
         {
             _graphicsDeviceService.Release(disposing);
         }
         _isDisposed = true;
     }
 }
예제 #9
0
        protected override void Dispose(bool disposing)
        {
            // Release our reference to the GraphicsDeviceService if we have one
            if (_graphicsService != null)
            {
                _graphicsService.Release(disposing);
                _graphicsService = null;
            }

            // Unhook all events.
            CompositionTarget.Rendering -= OnCompositionTargetRendering;
            if (Application.Current != null)
            {
                Application.Current.Activated   -= OnApplicationActivated;
                Application.Current.Deactivated -= OnApplicationDeactivated;
            }
            SizeChanged -= OnXnaWindowHostSizeChanged;
            Loaded      -= OnXnaWindowHostLoaded;

            base.Dispose(disposing);
        }
예제 #10
0
 public void FixtureTearDown()
 {
     _service.Release();
 }