Ejemplo n.º 1
0
 public void Dispose()
 {
     checkDestroyListener(true);
     foreach (Viewport vp in viewports)
     {
         ViewportManager.destroyViewport(vp);
     }
     viewports.Clear();
     renderTarget = IntPtr.Zero;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This will destroy the passed viewport.
 /// </summary>
 public void destroyViewport(Viewport viewport)
 {
     viewports.Remove(viewport);
     RenderTarget_destroyViewport(renderTarget, ViewportManager.destroyViewport(viewport));
 }