Interface IAtlasPacker
Packs glyph rectangles into texture atlas pages using a bin-packing algorithm.
public interface IAtlasPacker
Methods
Pack(IReadOnlyList<GlyphRect>, int, int)
Packs glyphs into pages that fit within the given max size.
PackResult Pack(IReadOnlyList<GlyphRect> glyphs, int maxWidth, int maxHeight)
Parameters
glyphsIReadOnlyList<GlyphRect>The glyph sizes to pack.
maxWidthintMax page width in pixels.
maxHeightintMax page height in pixels.
Returns
- PackResult
Where each glyph was placed and how many pages were needed.