public static Atlas Load(Stream stream, string imagesPath, TextureLoader textureLoader) { using (var reader = new StreamReader(stream)) { var atlas = new Atlas(new List <AtlasPage>(), new List <AtlasRegion>()); atlas.Load(reader, imagesPath, textureLoader); return(atlas); } }