Skip to main content

Module allocator

Module allocator 

Source

Structsยง

AllocId
ID referring to an allocated rectangle.
AllocIndex ๐Ÿ”’
Allocation
AllocatorOptions
Options to tweak the behavior of the atlas allocator.
AtlasAllocator
A dynamic texture atlas allocator using the guillotine algorithm.
Change
ChangeList
Node ๐Ÿ”’
SimpleAtlasAllocator
A simpler atlas allocator implementation that can allocate rectangles but not deallocate them.

Enumsยง

NodeKind
Orientation ๐Ÿ”’

Constantsยง

DEFAULT_OPTIONS
GEN_MASK ๐Ÿ”’
IDX_MASK ๐Ÿ”’
LARGE_BUCKET ๐Ÿ”’
MEDIUM_BUCKET ๐Ÿ”’
NUM_BUCKETS ๐Ÿ”’
SMALL_BUCKET ๐Ÿ”’

Functionsยง

adjust_size ๐Ÿ”’
free_list_for_size ๐Ÿ”’
guillotine_rect ๐Ÿ”’
safe_area ๐Ÿ”’
Compute the area, saturating at i32::MAX instead of overflowing.