コード例 #1
0
 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
ファイル: SharpDXInterop.cs プロジェクト: wyrover/SharpDX
        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;
        }
コード例 #7
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;
        }
コード例 #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
ファイル: GameWindowPhoneXaml.cs プロジェクト: oeoen/SharpDX
 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;
 }
コード例 #13
0
 void IDrawingSurfaceContentProviderNative.Connect(DrawingSurfaceRuntimeHost host)
 {
     this.host = host;
 }
コード例 #14
0
 public override void Disconnect()
 {
     _surfaceUpdateHandler.Disconnect();
     _host = null;
     SharpDX.Utilities.Dispose(ref _synchronizedTexture);
     _drawingSurfaceUpdateHandler.DisposeResources();
 }
コード例 #15
0
 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
ファイル: XamlGame.cs プロジェクト: Damian666/blasters
 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;
 }
コード例 #22
0
 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
ファイル: SharpDXInterop.cs プロジェクト: jm991/MiniCube
        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;
 }
コード例 #28
0
 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;
 }
コード例 #31
0
 public abstract void Connect(DrawingSurfaceRuntimeHost host, Device device);
コード例 #32
0
ファイル: XamlGame.cs プロジェクト: Damian666/blasters
 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;
 }
コード例 #34
0
 public abstract void Connect(DrawingSurfaceRuntimeHost host);
コード例 #35
0
 public override void Connect(DrawingSurfaceRuntimeHost host)
 {
     _host = host;
     _controller.Connect(host);
 }