addBorderToSlices
fun Pixmap.addBorderToSlices(context: Context, sliceWidth: Int, sliceHeight: Int, border: Int = 1, mipmaps: Boolean = false): Texture
Slice up the pixmap with the given size with an added border but returns the newly created Texture. This can be used to prevent atlas bleeding.
Parameters
context
the current context - used to prepare the newly created Texture.
sliceWidth
the width of each slice
sliceHeight
the height of each slice
border
the thickness of the border for each slice
mipmaps
use mipmaps or not for the new texture
fun Texture.addBorderToSlices(context: Context, sliceWidth: Int, sliceHeight: Int, border: Int = 1, mipmaps: Boolean = false): Texture
Slice up the texture with the given size with an added border but returns the newly created Texture. This can be used to prevent atlas bleeding.
Parameters
context
the current context - used to prepare the newly created Texture.
sliceWidth
the width of each slice
sliceHeight
the height of each slice
border
the thickness of the border for each slice
mipmaps
use mipmaps or not for the new texture