public override void Disconnect()
 {
     _surfaceUpdateHandler.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
     _drawingSurfaceUpdateHandler.DisposeResources();
 }
Пример #2
0
        /// <summary>
        /// Connects the specified host.
        /// </summary>
        /// <param name="host">The host.</param>
        public override void Connect(DrawingSurfaceRuntimeHost host)
        {
            if (m_surfacePainter == null)
            {
                throw new ObjectDisposedException("WP8DrawingSurfaceInterop");
            }

            m_runtimeHost = host;
        }
Пример #3
0
        internal void Connect(DrawingSurfaceRuntimeHost host)
        {
            _renderer = new CubeRenderer();
            _renderer.Initialize();
            _renderer.UpdateForWindowSizeChange((float)WindowBounds.Width, (float)WindowBounds.Height);
            _renderer.UpdateForRenderResolutionChange((float)_renderResolution.Width, (float)_renderResolution.Height);

            // Restart timer after renderer has finished initializing.
            _timer.Reset();
        }
Пример #4
0
        public void Disconnect()
        {
            // DeviceResetting events
            _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty);
            if (_game.GraphicsDevice != null)
                _game.GraphicsDevice.OnDeviceResetting();

            _game.Window.TouchPanelState.ReleaseAllTouches();

            _host = null;
        }
Пример #5
0
 public override void Disconnect()
 {
     this.runtimeHost.Dispose();
     this.runtimeHost = (DrawingSurfaceRuntimeHost)null;
     Utilities.Dispose <DrawingSurfaceSynchronizedTexture>(ref this.synchronizedTexture);
     if (this.sharpDXContext == null || !this.sharpDXContext.IsDisposed)
     {
         return;
     }
     this.sharpDXContext = (SharpDXContext)null;
 }
Пример #6
0
        public void Disconnect()
        {
            // DeviceResetting events
            _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty);
            if (_game.GraphicsDevice != null)
                _game.GraphicsDevice.OnDeviceResetting();

            Microsoft.Xna.Framework.Input.Touch.TouchPanel.ReleaseAllTouches();

            _host = null;
        }
        public void Disconnect()
        {
            // DeviceResetting events
            _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty);
            if (_game.GraphicsDevice != null)
            {
                _game.GraphicsDevice.OnDeviceResetting();
            }

            Microsoft.Xna.Framework.Input.Touch.TouchPanel.ReleaseAllTouches();

            _host = null;
        }
Пример #8
0
        public void Disconnect()
        {
            // DeviceResetting events
            _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty);
            if (_game.GraphicsDevice != null)
            {
                _game.GraphicsDevice.OnDeviceResetting();
            }

            _game.Window.TouchPanelState.ReleaseAllTouches();

            _host = null;
        }
Пример #9
0
        /// <summary>
        /// Disconnects this instance.
        /// </summary>
        public override void Disconnect()
        {
            if (m_surfacePainter == null)
            {
                throw new ObjectDisposedException("WP8DrawingSurfaceInterop");
            }

            // Dispose previously created buffers
            GraphicsHelper.SafeDispose(ref m_backBufferWP8Sync);
            GraphicsHelper.SafeDispose(ref m_backBufferWP8);

            m_runtimeHost = null;
        }
Пример #10
0
 void IDrawingSurfaceContentProviderNative.Connect(DrawingSurfaceRuntimeHost host)
 {
     this.host = host;
 }
Пример #11
0
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
     controller.Connect();
 }
Пример #12
0
 public void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
 }
 void IDrawingSurfaceContentProviderNative.Connect(DrawingSurfaceRuntimeHost host)
 {
     this.host = host;
 }
 public override void Disconnect()
 {
     _surfaceUpdateHandler.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
     _drawingSurfaceUpdateHandler.DisposeResources();
 }
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _surfaceUpdateHandler.Connect(host);
 }
 /// <summary>
 /// Called when the content provider is disconnected from the host.
 /// </summary>
 public override void Disconnect()
 {
     this.runtimeHost = null;
     Utilities.Dispose(ref this.synchronizedTexture);
 }
Пример #17
0
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     _host = host;
 }
 /// <summary>
 /// Called when the content provider is connected to a runtime host.
 /// </summary>
 /// <param name="host">DrawingSurfaceRuntimeHost host object.</param>
 /// <param name="device">Direct3D11 device.</param>
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.runtimeHost = host;
 }
Пример #19
0
 public void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
 }
Пример #20
0
 public override void Disconnect()
 {
     controller.Disconnect();
     host = null;
     synchronizedTexture = null;
 }
Пример #21
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     this.runtimeHost = host;
 }
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _surfaceUpdateHandler.Connect(host);
 }
Пример #23
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _controller.Connect(host);
 }
Пример #24
0
 public override void Disconnect()
 {
     _controller.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
 }
Пример #25
0
        internal void Connect(DrawingSurfaceRuntimeHost host)
        {
            _renderer = new CubeRenderer();
            _renderer.Initialize();
            _renderer.UpdateForWindowSizeChange((float)WindowBounds.Width, (float)WindowBounds.Height);
            _renderer.UpdateForRenderResolutionChange((float)_renderResolution.Width, (float)_renderResolution.Height);

            // Restart timer after renderer has finished initializing.
            _timer.Reset();
        }
Пример #26
0
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     _surfaceUpdateHandler.Connect(host);
 }
Пример #27
0
 void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
 }
 public abstract void Connect(DrawingSurfaceRuntimeHost host, Device device);
Пример #29
0
 public abstract void Connect(DrawingSurfaceRuntimeHost host);
 /// <summary>
 /// Called when the content provider is disconnected from the host.
 /// </summary>
 public override void Disconnect()
 {
     this.runtimeHost = null;
 }
 public abstract void Connect(DrawingSurfaceRuntimeHost host, Device device);
Пример #32
0
 public override void Disconnect()
 {
     // TODO: Do we deal with this as a device lost case?
     _host = null;
 }
Пример #33
0
 void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
 }
 public abstract void Connect(DrawingSurfaceRuntimeHost host);
Пример #35
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _controller.Connect(host);
 }