Pixmap
class Pixmap(val width: Int, val height: Int, val pixels: ByteBuffer = createByteBuffer(width * height * 4))
Author
Colton Daily
Constructors
Types
Functions
Properties
Extensions
Link copied to clipboard
Link copied to clipboard
fun Pixmap.sliceWithBorder(context: Context, sliceWidth: Int, sliceHeight: Int, border: Int = 1, mipmaps: Boolean = false): List<TextureSlice>
Slice up the texture in a list of TextureSlice with the given size with an added border. This can be used to prevent atlas bleeding.