Registry / utility / etagere

etagere

JSON →
library0.3.0rscratesunverified

Dynamic 2D texture atlas allocation using the shelf packing algorithm.

# Cargo.toml [dependencies] etagere = "0.3.0"
INSTALL
IMPORT
SIG · ETAGERE
E
etagere
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AtlasAllocator
use etagere::AtlasAllocator;

Creates a 1024x1024 atlas and allocates a 100x100 rectangle.

use etagere::AtlasAllocator; let mut allocator = AtlasAllocator::new(etagere::size2(1024, 1024)); let allocation = allocator.allocate(etagere::size2(100, 100)).unwrap(); println!("Allocated rectangle at {:?}", allocation.rectangle);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
etagere — cargo add etagere · libregistry