예제 #1
0
        public override void Cancel()
        {
            // Remove the delegate renderer from the pipeline

            SceneRendererCollection rendererCollection = GetSceneRendererCollection();

            rendererCollection?.Children.Remove(delegateRenderer);

            // destroy graphic objects
            spriteBatch.Dispose();
        }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneGraphicsLayer"/> class.
 /// </summary>
 public SceneGraphicsLayer()
 {
     Output = CurrentRenderFrameProvider.Instance;
     Renderers = new SceneRendererCollection();
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SceneGraphicsLayer"/> class.
 /// </summary>
 public SceneGraphicsLayer()
 {
     Output    = CurrentRenderFrameProvider.Instance;
     Renderers = new SceneRendererCollection();
 }