Companion
object Companion
Functions
Link copied to clipboard
fun extractBmpSlices(bmp: Bitmap32, tilewidth: Int, tileheight: Int, columns: Int, tilecount: Int, spacing: Int, margin: Int): List<BmpSlice32>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun fromTileSetTileInfo(tilewidth: Int, tileheight: Int, bmpSlices: List<TileSetTileInfo>, border: Int = 1, mipmaps: Boolean = false): TileSet
Link copied to clipboard
operator fun invoke(tilesMap: IntMap<TileSetTileInfo>, width: Int = if (tilesMap.size == 0) 0 else tilesMap.firstValue().slice.width, height: Int = if (tilesMap.size == 0) 0 else tilesMap.firstValue().slice.height, border: Int = 1, mipmaps: Boolean = false): TileSet
operator fun invoke(tiles: List<TileSetTileInfo>, width: Int = tiles.first().slice.width, height: Int = tiles.first().slice.height, border: Int = 1, mipmaps: Boolean = false): TileSet
operator fun invoke(vararg tiles: TileSetTileInfo, width: Int = tiles.first().slice.width, height: Int = tiles.first().slice.height, border: Int = 1, mipmaps: Boolean = false): TileSet