Exemple #1
0
 public void Dispose()
 {
     Device.Dispose();
     WorldVoxelRenderer.Dispose();
     tempBuffer.Dispose();
     if (fontSheetBuilder != null)
     {
         fontSheetBuilder.Dispose();
     }
 }
Exemple #2
0
 public void Dispose()
 {
     Device.Dispose();
     WorldVoxelRenderer.Dispose();
     foreach (var buffer in tempBuffers)
     {
         buffer.Dispose();
     }
     tempBuffers.Clear();
     if (fontSheetBuilder != null)
     {
         fontSheetBuilder.Dispose();
     }
 }
Exemple #3
0
 public void Dispose()
 {
     Device.Dispose();
     WorldVoxelRenderer.Dispose();
     tempBuffer.Dispose();
     if (fontSheetBuilder != null)
     {
         fontSheetBuilder.Dispose();
     }
     if (Fonts != null)
     {
         foreach (var font in Fonts.Values)
         {
             font.Dispose();
         }
     }
 }