public override void Disconnect()
 {
     _surfaceUpdateHandler.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
     _drawingSurfaceUpdateHandler.DisposeResources();
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 10
0
 void IDrawingSurfaceContentProviderNative.Connect(DrawingSurfaceRuntimeHost host)
 {
     this.host = host;
 }
Ejemplo n.º 11
0
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
     controller.Connect();
 }
Ejemplo n.º 12
0
 public void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
 }
Ejemplo n.º 13
0
 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 19
0
 public void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
 }
Ejemplo n.º 20
0
 public override void Disconnect()
 {
     controller.Disconnect();
     host = null;
     synchronizedTexture = null;
 }
Ejemplo n.º 21
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     this.runtimeHost = host;
 }
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _surfaceUpdateHandler.Connect(host);
 }
Ejemplo n.º 23
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _controller.Connect(host);
 }
Ejemplo n.º 24
0
 public override void Disconnect()
 {
     _controller.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 26
0
 public override void Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     _surfaceUpdateHandler.Connect(host);
 }
Ejemplo n.º 27
0
 void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
 }
 public abstract void Connect(DrawingSurfaceRuntimeHost host, Device device);
Ejemplo n.º 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);
Ejemplo n.º 32
0
 public override void Disconnect()
 {
     // TODO: Do we deal with this as a device lost case?
     _host = null;
 }
Ejemplo n.º 33
0
 void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntimeHost host, Device device)
 {
     this.host = host;
 }
 public abstract void Connect(DrawingSurfaceRuntimeHost host);
Ejemplo n.º 35
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _controller.Connect(host);
 }