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