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