Пример #1
0
		public Graph3DControl()
		{
			InitializeComponent();

			_scene = new D3D10Scene();
			var imageSource = new D3D10ImageSource();
			_renderer = new D3D10RendererToImageSource(_scene, imageSource);
			_d3dCanvas.Source = imageSource;
		}
Пример #2
0
        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;
        }
Пример #3
0
        public Graph3DControl()
        {
            InitializeComponent();

            _scene = new D3D10Scene();
        }