Dispose() public méthode

public Dispose ( ) : void
Résultat void
Exemple #1
0
        public void Dispose()
        {
            // HACK: Disposing the world from here violates ownership
            // but the WorldRenderer lifetime matches the disposal
            // behavior we want for the world, and the root object setup
            // is so horrible that doing it properly would be a giant mess.
            World.Dispose();

            palette.Dispose();
            Theater.Dispose();
        }
Exemple #2
0
 public void Dispose()
 {
     // HACK: Disposing the world from here violates ownership
     // but the WorldRenderer lifetime matches the disposal
     // behavior we want for the world, and the root object setup
     // is so horrible that doing it properly would be a giant mess.
     World.Dispose();
     //Game.ModData.ResetSequenceProviders();
     Game.Renderer.WorldSpriteRenderer.ClearTexturesShader();
     Game.Renderer.SpriteRenderer.ClearTexturesShader();
     palette.Dispose();
     Theater.Dispose();
 }
Exemple #3
0
 public void Dispose()
 {
     palette.Dispose();
     Theater.Dispose();
     terrainRenderer.Dispose();
 }