NewSpritesheetWithBorderFromTexture creates a new spritesheet from a texture resource. This sheet has sprites of a uniform width and height, but also have borders around each sprite to prevent bleeding over
(tr *TextureResource, cellWidth, cellHeight, borderWidth, borderHeight int)
| 94 | // This sheet has sprites of a uniform width and height, but also have borders around |
| 95 | // each sprite to prevent bleeding over |
| 96 | func NewSpritesheetWithBorderFromTexture(tr *TextureResource, cellWidth, cellHeight, borderWidth, borderHeight int) *Spritesheet { |
| 97 | spriteRegions := generateSymmetricSpriteRegions(tr.Width, tr.Height, cellWidth, cellHeight, borderWidth, borderHeight) |
| 98 | return NewAsymmetricSpritesheetFromTexture(tr, spriteRegions) |
| 99 | } |
| 100 | |
| 101 | // NewSpritesheetWithBorderFromFile creates a new spritesheet from a file |
| 102 | // This sheet has sprites of a uniform width and height, but also have borders around |
no test coverage detected