atlas

Undocumented in source.

Modules

pixel_scan
module atlas.pixel_scan
Undocumented in source.
rows
module atlas.rows
Undocumented in source.

Members

Enums

Method
enum Method

A method to pack rectangles together.

isRect
eponymoustemplate isRect(T)
Undocumented in source.

Functions

pack
R[] pack(R[] rects, uint width, uint height, Method method, uint padding)

Packs rects into a rectangular region with size width by height, using method. Accounts for padding grid-spaces of padding on all sides of the rects. The data in rects will be re-ordered.

packSorted
R[] packSorted(R[] rects, uint width, uint height, Method method, uint padding)

Same as pack, but requires rects to be sorted by their height (tallest first) for the following methods: - rows

Structs

Rect
struct Rect(U)

A rectangular region with an optional userData field of type U to associate it with an external resource (e.g. an image).

Meta