AtlasPacker

Types

Link copied to clipboard
data class AtlasResult<T>(val tex: Bitmap32, val atlas: Atlas, val packedItems: List<AtlasPacker.Entry<T>>) : AtlasLookup
Link copied to clipboard
data class Entry<T>(val item: T, val originalSlice: BmpSlice, val slice: BmpSlice32, val rectWithBorder: Rectangle, val rect: Rectangle)
Link copied to clipboard
data class Result<T>(val atlases: List<AtlasPacker.AtlasResult<T>>) : AtlasLookup

Functions

Link copied to clipboard
fun pack(    items: List<BmpSlice>,     maxSide: Int = 2048,     maxTextures: Int = 1,     borderSize: Int = 2,     fileName: String = "atlas.png"): AtlasPacker.Result<BmpSlice>
@JvmName(name = "packPairs")
fun <T> pack(    items: List<Pair<T, BmpSlice>>,     maxSide: Int = 2048,     maxTextures: Int = 16,     borderSize: Int = 2,     fileName: String = "atlas.png"): AtlasPacker.Result<T>