Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
 public void InitializeFonts(Manifest m)
 {
     using (new Support.PerfTimer("SpriteFonts"))
     {
         if (fontSheetBuilder != null)
         {
             fontSheetBuilder.Dispose();
         }
         fontSheetBuilder = new SheetBuilder(SheetType.BGRA);
         Fonts            = m.Fonts.ToDictionary(x => x.Key,
                                                 x => new SpriteFont(Platform.ResolvePath(x.Value.First), x.Value.Second, fontSheetBuilder)).AsReadOnly();
     }
 }
Beispiel #2
0
        public void Dispose()
        {
            ClearHardwareCursors();

            cursors.Clear();
            sheetBuilder.Dispose();
        }
 public void Dispose()
 {
     if (vertexBuffer != null)
     {
         vertexBuffer.Dispose();
     }
     sheetBuilder.Dispose();
 }
Beispiel #4
0
        public void Dispose()
        {
            foreach (var cursors in hardwareCursors)
            {
                foreach (var cursor in cursors.Value)
                {
                    cursor.Dispose();
                }
            }

            sheetBuilder.Dispose();
            hardwareCursors.Clear();
        }
Beispiel #5
0
 public void Dispose()
 {
     palette.Dispose();
     sheetBuilder.Dispose();
 }
Beispiel #6
0
 public void Dispose()
 {
     sheetBuilder.Dispose();
 }