示例#1
0
 public void SetImagePack(string file)
 {
     if (imgPack != null)
     {
         imgPack.Dispose();
         imgPack = null;
     }
     this.active = false;
     this.dirty  = true;
     imgPack     = new LTexturePack(file);
     imgPack.Packed(format);
 }
示例#2
0
 public void Dispose()
 {
     if (pack != null)
     {
         pack.Dispose();
         pack = null;
     }
     if (batch != null)
     {
         batch.Dispose();
         batch = null;
     }
 }
示例#3
0
 public override void Dispose()
 {
     if (pack != null)
     {
         pack.Dispose();
     }
     if (back != null)
     {
         back.Destroy();
         back = null;
     }
     if (fore != null)
     {
         fore.Destroy();
         fore = null;
     }
     if (dot != null)
     {
         dot.Destroy();
         dot = null;
     }
 }