コード例 #1
0
ファイル: CCTextureAtlas.cs プロジェクト: zhuruvl/CocosSharp
 public void RemoveQuadsAtIndex(int index, int amount)
 {
     Debug.Assert(index + amount <= Quads.Count, "removeQuadAtIndex: Invalid index");
     Quads.RemoveAt(index, amount);
     Dirty = true;
 }
コード例 #2
0
ファイル: CCTextureAtlas.cs プロジェクト: zhuruvl/CocosSharp
 // Removes a quad at a given index number.
 // The capacity remains the same, but the total number of quads to be drawn is reduced in 1
 public void RemoveQuadAtIndex(int index)
 {
     Debug.Assert(index < Quads.Count, "removeQuadAtIndex: Invalid index");
     Quads.RemoveAt(index);
     Dirty = true;
 }