MutableTextureAtlas

class MutableTextureAtlas(val context: Context, options: PackingOptions = PackingOptions())

Allows building of a TextureAtlas by combining existing textures, texture slices, and texture atlases.

Author

Colton Daily

Constructors

Link copied to clipboard
fun MutableTextureAtlas(context: Context, width: Int = 4096, height: Int = 4096, padding: Int = 2)
Link copied to clipboard
fun MutableTextureAtlas(context: Context, options: PackingOptions = PackingOptions())

Functions

Link copied to clipboard
fun add(slices: List<TextureSlice>)
fun add(slice: TextureSlice, name: String = "slice"): MutableTextureAtlas
Link copied to clipboard
fun toImmutable(useMiMaps: Boolean = true): TextureAtlas

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val size: Int
Link copied to clipboard
val width: Int