MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / ShelfPacker

Class ShelfPacker

src/graphics/packer.rs:13–17  ·  view source on GitHub ↗

Packs texture data into an atlas using a naive shelf-packing algorithm.

Source from the content-addressed store, hash-verified

11
12/// Packs texture data into an atlas using a naive shelf-packing algorithm.
13pub struct ShelfPacker {
14 texture: Texture,
15 shelves: Vec<Shelf>,
16 next_y: i32,
17}
18
19impl ShelfPacker {
20 /// Creates a new `ShelfPacker`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected