public override void Cancel() { // Remove the delegate renderer from the pipeline SceneRendererCollection rendererCollection = GetSceneRendererCollection(); rendererCollection?.Children.Remove(delegateRenderer); // destroy graphic objects spriteBatch.Dispose(); }
/// <summary> /// Initializes a new instance of the <see cref="SceneGraphicsLayer"/> class. /// </summary> public SceneGraphicsLayer() { Output = CurrentRenderFrameProvider.Instance; Renderers = new SceneRendererCollection(); }