public RendererD3DSharpDX() { m_interopImageSource = new D3DImageSharpDX(); m_interopImageSource.IsFrontBufferAvailableChanged += OnIsFrontBufferAvailableChanged; m_device = Helpers11.CreateDevice(); m_scene = new SingleQuad11(m_device); }
void Dispose(bool disposing) { if (m_disposed) return; if (disposing) { // Dispose managed resources. } // Dispose unmanaged resources if (m_scene != null) { m_scene.Dispose(); m_scene = null; } if (m_interopImageSource != null) { m_interopImageSource.Dispose(); m_interopImageSource = null; } if (m_renderTexture != null) { m_renderTexture.Dispose(); m_renderTexture = null; } if (m_tileTextureArray != null) { m_tileTextureArray.Dispose(); m_tileTextureArray = null; } if (m_device != null) { m_device.Dispose(); m_device = null; } m_disposed = true; }