MutableAtlas

class MutableAtlas<T>(    var binPacker: BinPacker,     val border: Int = 2,     val premultiplied: Boolean = true,     val allowToGrow: Boolean = true,     val growMethod: MutableAtlas.GrowMethod = GrowMethod.NEW_IMAGES)

Constructors

Link copied to clipboard
constructor(    width: Int = 2048,     height: Int = width,     border: Int = 2,     premultiplied: Boolean = true,     allowToGrow: Boolean = true,     growMethod: MutableAtlas.GrowMethod = GrowMethod.NEW_IMAGES)
constructor(    binPacker: BinPacker,     border: Int = 2,     premultiplied: Boolean = true,     allowToGrow: Boolean = true,     growMethod: MutableAtlas.GrowMethod = GrowMethod.NEW_IMAGES)

Types

Link copied to clipboard
data class Entry<T>(val slice: BmpSlice32, val data: T)
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
val allowToGrow: Boolean = true
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val border: Int = 2
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard
val size: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun add(bmp: Bitmap32, data: T, name: String? = "Slice"): MutableAtlas.Entry<T>
fun add(bmp: BmpSlice, data: T, name: String? = bmp.name): MutableAtlas.Entry<T>
Link copied to clipboard
Link copied to clipboard
operator fun contains(name: String): Boolean
Link copied to clipboard
operator fun get(name: String): BmpSlice
Link copied to clipboard