Пример #1
0
 public TextureAtlas(TextureAtlasData data, Image <Rgba32> replacement) : this(data, Texture.FromImage(replacement))
 {
 }
Пример #2
0
 public TextureAtlas(TextureAtlasData data, Texture replacementTexture)
 {
     atlasData = data ?? throw new ArgumentNullException(nameof(data));
     texture   = replacementTexture ?? throw new ArgumentNullException(nameof(replacementTexture));
 }
Пример #3
0
 public TextureAtlas(TextureAtlasData data)
 {
     atlasData = data ?? throw new ArgumentNullException(nameof(data));
     texture   = Texture.FromFile(data.ImageName);
 }