/// <inheritdoc />
 protected override void UnloadContent()
 {
     base.UnloadContent();
     FullScreenQuad.Dispose();
     HorizontalRenderTarget.Dispose();
     MainRenderTarget.Dispose();
 }
Exemple #2
0
 protected override void UnloadContent()
 {
     base.UnloadContent();
     FullScreenQuad.Dispose();
     FirstPassBloomRenderTarget.Dispose();
     MainSceneRenderTarget.Dispose();
     SecondPassBloomRenderTarget.Dispose();
 }
Exemple #3
0
 /// <inheritdoc />
 protected override void UnloadContent()
 {
     Primitive.Dispose();
     Arrows.ForEach(arrow => arrow.Dispose());
     Arrows.Clear();
     Primitive.Dispose();
     FullScreenQuad.Dispose();
     Effect.Dispose();
     DebugTextureEffect.Dispose();
     base.UnloadContent();
 }
Exemple #4
0
        public void Dispose()
        {
            if (FullScreenQuad != null && !FullScreenQuad.Disposed)
            {
                FullScreenQuad.Dispose();
            }

            if (Effect != null && !Effect.Disposed)
            {
                Effect.Dispose();
            }

            if (AlarmTexture != null && !AlarmTexture.D3dTexture.Disposed)
            {
                AlarmTexture.dispose();
            }

            if (RenderTarget2D != null && !RenderTarget2D.Disposed)
            {
                RenderTarget2D.Dispose();
            }

            if (DepthStencil != null && !DepthStencil.Disposed)
            {
                DepthStencil.Dispose();
            }

            if (OldDepthStencil != null && !OldDepthStencil.Disposed)
            {
                OldDepthStencil.Dispose();
            }

            if (OldRenderTarget != null && !OldRenderTarget.Disposed)
            {
                OldRenderTarget.Dispose();
            }
        }
 /// <inheritdoc />
 protected override void UnloadContent()
 {
     base.UnloadContent();
     FullScreenQuad.Dispose();
     ShadowMapRenderTarget.Dispose();
 }
Exemple #6
0
 public void Dispose()
 {
     noShadowsShader.Dispose();
     layout.Dispose();
     quad.Dispose();
 }
Exemple #7
0
 internal static void DisposeAllUtils()
 {
     FullScreenQuad?.Dispose();
     UnitCube?.Dispose();
 }