DynamicAtlasAllocator

class DynamicAtlasAllocator(val dimension: Dimension, val verticalCutSize: Int, val minDimension: Dimension)

Constructors

Link copied to clipboard
constructor(dimension: Dimension, verticalCutSize: Int, minDimension: Dimension)

Properties

Link copied to clipboard
val availableSlices: ObjectOpenHashSet<AtlasSlice>
Link copied to clipboard
Link copied to clipboard

The minimal dimension of a slice. If a cut would be smaller than this, it will be made available.

Link copied to clipboard

In order to reduce the fragmentation the allocator will cut the texture into slices.

Functions

Link copied to clipboard
Link copied to clipboard
fun free(handle: AtlasSliceHandle)