public void Dispose() { Device.Dispose(); WorldVoxelRenderer.Dispose(); tempBuffer.Dispose(); if (fontSheetBuilder != null) { fontSheetBuilder.Dispose(); } }
public void Dispose() { Device.Dispose(); WorldVoxelRenderer.Dispose(); foreach (var buffer in tempBuffers) { buffer.Dispose(); } tempBuffers.Clear(); if (fontSheetBuilder != null) { fontSheetBuilder.Dispose(); } }
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(); } } }