public static TextureAtlas Create(Dictionary <uint, Bitmap> images) { var builder = new TextureAtlasBuilder(); foreach (var image in images) { builder.AddImage(new ImageHandle(image.Key, image.Value)); } return(builder.Create()); }
public static TextureAtlas Create(params FreeType.Glyph[] glyphs) { var builder = new TextureAtlasBuilder(); foreach (var glyph in glyphs) { builder.AddImage(new ImageHandle(glyph)); } return(builder.Create()); }