Table of Contents

Namespace KernSmith.Atlas

Classes

AtlasGroupBuilder

Packs rects from multiple independent glyph sources into a single shared IAtlasPacker pass, then splits the resulting placements back out per source so each can feed its own BmFontModel build.

AtlasPage

A single texture page in the atlas containing packed glyph pixel data.

PackResult

Result of atlas packing: glyph placements, page count, and page dimensions.

Structs

AtlasGroupBuilder.GroupSource

One tagged glyph-rect source to be packed as part of a shared group.

GlyphPlacement

A glyph's assigned position within the atlas after packing.

GlyphRect

A glyph's dimensions (including padding and spacing) used as input to atlas packing.

OccupiedRect

A rectangular region of an atlas page that is already taken by an existing glyph, used as input to incremental packing (PackInto(IReadOnlyList<GlyphRect>, IReadOnlyList<OccupiedRect>, int, int, int)).

Interfaces

IAtlasEncoder

Encodes atlas pixel data to an image format such as PNG, TGA, or DDS.

IAtlasPacker

Packs glyph rectangles into texture atlas pages using a bin-packing algorithm.