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