public Graph3DControl() { InitializeComponent(); _scene = new D3D10Scene(); var imageSource = new D3D10ImageSource(); _renderer = new D3D10RendererToImageSource(_scene, imageSource); _d3dCanvas.Source = imageSource; }
public virtual void Dispose() { _isDisposed = true; _controller = new WeakReference(null); _renderer?.Dispose(); var imgSource = _d3dCanvas?.Source as D3D10ImageSource; _d3dCanvas.Source = null; imgSource?.Dispose(); _scene = null; _mouseState = null; }
public Graph3DControl() { InitializeComponent(); _scene = new D3D10Scene(); }