public override void Disconnect() { _surfaceUpdateHandler.Disconnect(); _host = null; SharpDX.Utilities.Dispose(ref _synchronizedTexture); _drawingSurfaceUpdateHandler.DisposeResources(); }
/// <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; }
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(); }
public void Disconnect() { // DeviceResetting events _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty); if (_game.GraphicsDevice != null) _game.GraphicsDevice.OnDeviceResetting(); _game.Window.TouchPanelState.ReleaseAllTouches(); _host = null; }
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; }
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; }
public void Disconnect() { // DeviceResetting events _game.graphicsDeviceManager.OnDeviceResetting(EventArgs.Empty); if (_game.GraphicsDevice != null) { _game.GraphicsDevice.OnDeviceResetting(); } _game.Window.TouchPanelState.ReleaseAllTouches(); _host = null; }
/// <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; }
void IDrawingSurfaceContentProviderNative.Connect(DrawingSurfaceRuntimeHost host) { this.host = host; }
public override void Connect(DrawingSurfaceRuntimeHost host, Device device) { this.host = host; controller.Connect(); }
public void Connect(DrawingSurfaceRuntimeHost host) { _host = host; }
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); }
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; }
public override void Disconnect() { controller.Disconnect(); host = null; synchronizedTexture = null; }
public override void Connect(DrawingSurfaceRuntimeHost host) { this.runtimeHost = host; }
public override void Connect(DrawingSurfaceRuntimeHost host) { _host = host; _controller.Connect(host); }
public override void Disconnect() { _controller.Disconnect(); _host = null; SharpDX.Utilities.Dispose(ref _synchronizedTexture); }
public override void Connect(DrawingSurfaceRuntimeHost host, Device device) { _surfaceUpdateHandler.Connect(host); }
void IDrawingSurfaceBackgroundContentProviderNative.Connect(DrawingSurfaceRuntimeHost host, Device device) { this.host = host; }
public abstract void Connect(DrawingSurfaceRuntimeHost host, Device device);
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 override void Disconnect() { // TODO: Do we deal with this as a device lost case? _host = null; }