Registry / utility / guillotiere

guillotiere

JSON →
library0.7.0rscratesunverified

A dynamic 2D texture atlas allocator with fast deallocation.

# Cargo.toml [dependencies] guillotiere = "0.7.0"
INSTALL
IMPORT
SIG · GUILLOTIERE
G
guillotiere
utilityrustv0.7.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 guillotiere::AtlasAllocator;

Allocate a rectangle in a texture atlas

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

No known issues recorded.

Upgrade
Version history
0.7.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
guillotiere — cargo add guillotiere · libregistry