Skip to content

Commit

Permalink
expand overlap test to include padding and pixel padding
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Nov 7, 2024
1 parent 1cd861b commit bde7b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/TexturePackerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public void TestPacking() {
}

[Test]
public void TestOverlap() {
public void TestOverlap([Values(0, 1, 5, 10)] int padding) {
var packed = new List<TextureRegion>();
using (var packer = new RuntimeTexturePacker(8192)) {
for (var i = 1; i <= 1000; i++)
packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add);
packer.Add(new TextureRegion(this.testTexture, 0, 0, i % 239, i % 673), packed.Add, padding);
packer.Pack(this.Game.GraphicsDevice);
}

Expand Down

0 comments on commit bde7b1c

Please sign in to comment.