Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
        }