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