Beispiel #1
0
		private static Picture CreateANewDefaultImage(Vector2D position)
		{
			var material = ContentExtensions.CreateDefaultMaterial2D();
			var newSprite = new Picture(new Theme(), material,
				Rectangle.FromCenter(position, new Size(0.05f)));
			newSprite.Set(BlendMode.Normal);
			return newSprite;
		}
Beispiel #2
0
 private static Picture CreateANewDefaultImage(Vector2D position)
 {
     var costumImage = CreateDefaultImage();
     var material = new Material(ContentLoader.Load<Shader>(Shader.Position2DColorUV),
         costumImage, costumImage.PixelSize);
     var newSprite = new Picture(new Theme(), material,
         Rectangle.FromCenter(position, new Size(0.05f)));
     newSprite.Set(BlendMode.Normal);
     return newSprite;
 }